Monday, March 8, 2021

Euro Millions Coin Flipper Dinner Chooser Python

import random
import string

 # To be extended one bit at a time 
lottery_numbers_picked = 1033458226
lottery = ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50"]
luckystar =["1","2","3","4","5","6","7","8","9","10","11","12"]
print(" ")
print("********Euro Millions********££££")
#print(" ")
print("lottery number 1 = ", random.choice(lottery))
print("lottery number 2 = ", random.choice(lottery))
print("lottery number 3 = ", random.choice(lottery))
print("lottery number 4 = ", random.choice(lottery))
print("lottery number 5 = ", random.choice(lottery))
print("lucky star number 1 = ",random.choice(luckystar))
print("lucky star number 2 = ",random.choice(luckystar))
print("Good luck with your numbers!")
print(" ")
 # It's your lucky numbers! 

def flipcoin():
    return random.choice(["Heads","Tails"])

for i in range(0,3):
        print("Is the coin flip Heads?",flipcoin())
choices = ["Indian", "Italian", "Chinese", "Mexican", "Thai", "French", "Barbeque", "Something Else"]
print("today we will eat", random.choice(choices))

Gammon => Ham Calculator V1.0

def ham_cooking_time (grams): """ Calculates the cooking time for a ham based on its weight. Args: g...