Coder Social home page Coder Social logo

python-beginner's Introduction

python-beginner

This repository contains some code I wrote while learning Python.

Table of Content:

  • Armstrong Numbers - determines whether a number is an Armstrong Number and returns the result in a whole sentence "The Number is [not] an Armstrong number."

Determine if a number is an Armstrong number or not

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself.

Create and manage a bank account in the terminal

Traversing Graph using Breadth First Search

Breadth First Search is similar to Breadth First Traversal of a tree, the only difference is that in Graph we have to maintain list of visited node as it may contain cycle(s).

Calculate the Greatest Common Divisor between 2 numbers

Calculate the Least Common Multiple between 2 numbers

Check whether given number is odd or even

Evaluate if a number is a palindrome or not

Calculate the sum from 1 to n numbers

1 + 2 + 3 + ........ (up to n)

Calculate the sum of squares from 1 to n numbers

12 + 22 + 32 + ........ (up to n2)

Calculate the sum of cubes from 1 to n numbers

13 + 23 + 33 + ........ (up to n3)

Sum of squares

Calculate the sum of squares from 1 to n numbers
https://github.com/rossoskull/python-beginner/blob/master/sumofsquares.py

Guessing game

Guessing game that the user tries to guess a number between 1 and 100
https://github.com/rossoskull/python-beginner/blob/master/guessing_game.py

python-beginner's People

Contributors

rossoskull avatar neeraj3029 avatar aroy314 avatar eduardosm7 avatar gahan9 avatar rknntns avatar t-rekttt avatar

Stargazers

Gerald Tankersley avatar

Watchers

James Cloos avatar Gerald Tankersley avatar

python-beginner's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.