Skip to content

Instantly share code, notes, and snippets.

print "Welcome to our fabulous menu creator!"
menu_dict = {}
while True:
dish = raw_input("Please enter a dish: ")
price = raw_input("Please enter a price for the dish: ")
if price == True:
menu_dict[dish] = True
else:
menu_dict[dish] = price
quote = "Today is a beautiFul dAy"
print quote.lower()
@kiwiBBC
kiwiBBC / fizzbuzz.py
Last active November 14, 2017 20:40
x = 1
answer = int(raw_input("select a number between 1 and 100: "))
for x in range (1, answer + 1):
if x % 15 == 0:
print "fizzbuzz"
elif x % 5 == 0:
print "buzz"
elif x % 3 == 0:
print "fizz"
else:
@kiwiBBC
kiwiBBC / casino.py
Created November 8, 2017 10:28
bit :: Python session 1 :: homework
secret = int("8")
guess = int(raw_input("Enter the value for guess: "))
print guess
if guess == secret:
print "CONGRATULATIONS. YOU'VE WON !!!"
else:
print "Please try again."