Python Challenges
(For Python 3.X)
Using a free Python IDE such as Mu have a go at completing these Python Challenges.
Please note that the example solutions are just one way of solving the problem. There are many alternative ways.
Beginner: The Love Calculator
Create a program that takes 2 names and then generates 2 random numbers.
Beginner: Number Guess
Create a program that generates a random number and allows the user to guess it.
Beginner: Higher or Lower
Create a program that generates a random number, the user then has to pick whether the next random number is going to be higher or lower.
Beginner: Dinner
Create a program that stores 10 choices for food and 10 choices of drink and then presents a random combination as a possible dinner suggestion.
Beginner: FizzBuzz
Create a program that allows the user to enter a number. If the number is divisible by 3 return ‘Fizz’, if the number is divisible by 5 return ‘Buzz’, and if divisible by both 3 & 5 return ‘FizzBuzz’. Otherwise just return the number entered.
Intermediate: Login Script
Create a login script for 5 users that checks their username and password is correct.
Once they are logged in they should be greeted and given today’s date and time.
Intermediate: Password Strength
Create a program that takes a password and gives feedback on how to make it more secure.
Intermediate: Rock paper Scissors
Create the classic game of Rock Paper Scissors. User vs Computer.
Intermediate: TicTacToe
Create the classic game of TicTacToe. User vs User.
Advanced users can add the option of User Vs Computer
Intermediate: Converter
Create a conversion program that converts common weights, measurements and currencies.
Intermediate: Encryption
Create a program that uses the Caesar Cipher to encrypt and decrypt text.
(Advanced The user should be able to specify the shift needed for encryption.)
Advanced: Bingo
Create the classic game of Bingo which randomly selects numbers 1-90 and gives the appropriate bingo lingo.
Advanced+: Password Cracker
Create a program that can perform a brute force attack on a variable length password which uses lower case, upper case, numbers and symbols.