This repository contains some code I wrote while learning Python.
- 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)
Calculate the sum of squares from 1 to n numbers
https://github.com/rossoskull/python-beginner/blob/master/sumofsquares.py
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