3 Mini Python Projects
3 Mini Python Projects
import random
computer_choice = random.choice(item_list)
if user_choice == computer_choice:
if computer_choice == "Paper":
else:
computer_choice == "Scissor"
if computer_choice == "Rock":
else:
computer_choice == "Scissor"
if computer_choice == "Rock":
else:
computer_choice == "Paper"
#inputs we need are hostel rent, food, electricity bill,charge per unit of electricity,people in the flat
share = float(total_distribution/people)
print(share)
menu = {
"Burger": 10.99,
"Pizza": 12.99,
"Salad": 8.99,
"Fries": 3.99,
"Soda": 2.99,
}
# Greet
order_total = 0
if item_1 in menu:
order_total += menu[item_1]
else:
if another_order == "yes":
if item_2 in menu:
order_total += menu[item_2]
else: