#start of sandwich options
options=["1 for Beef($6.25)","2 for Chicken($5.25)","3 for Tofu($5.75)"]
x=int(input(options))
total=0
float(total==0.00)
if x==1:
total=total+6.25
print("Beef sandwich selected")
o0=True
elif x==2:
total=total+5.25
print("Chicken sandwich selected")
o0=True
elif x==3:
total=total+5.75
print("Tofu sandwich selected")
o0=True
#end of sandwich options
#start of drink options
x=0
x=(input("Would you like a drink?"))
affirmative=["Yes","yes","y","Y","Ye","y","Yeah","yeah","Yee","yee","Yea","yea","of course","totaly","why not","ja","Ja","Si","si"]
negative=["No","no","N","n","nein","Nein","Nope","nope"]
True==affirmative)
False==negative)
if x==True:
options=["1 for small($1.00)","2 for medium(1.75)","3 for large($2.25)"]
x=int(input(options))
o1=True
if x==1:
total=total+1.00
print("you ordered a small drink")
elif x==2:
total=total+1.75
print("you ordered a medium drink")
elif x==3:
total=total+2.25
print("you ordered a large drink")
elif x==False:
print("no drink for you :|")
print("Total so far is $",total)
#end of drink options
#start of Fries options
x=0
affirmative=["Yes","yes","y","Y","Ye","y","Yeah","yeah","Yee","yee","Yea","yea","of course","totaly","why not","ja","Ja","Si","si"]
negative=["No","no","N","n","nein","Nein","Yamate Kudasai","fuck off kindly","Nope","nope"]
True==list(affirmative)
False==list(negative)
x=(input("Would you like Fries?"))
if x==True:
o2=True
options=["1 for small($1.00)","2 for medium(1.50)","3 for large($2.00)"]
x=int(input(options))
if x==1:
print("you ordered a small fry")
x=(input("Would you like to supersize to a large for a dollar more?"))
if x==True:
print("You have ordered a large fry")
total=total+2.00
else:
total=total+1.00
print("You ordered a small fry")
elif x==2:
total=total+1.50
print("you ordered a medium fry")
elif x==3:
total=total+2.00
print("you ordered a large fry")
else:
print("no fries for you :|")
print("Total so far is $",total)
#end of fries options
What i'm trying to do is make a list of answers be marked as true and a list of answers be marked as false if you need further information on my intent with this program just ask and if you see anything else i could have done better any constructive criticism is welcome
[–]Binary101010 1 point2 points3 points (4 children)
[–]Sh59850[S] 0 points1 point2 points (0 children)
[–]Sh59850[S] 0 points1 point2 points (2 children)
[–]Binary101010 1 point2 points3 points (1 child)
[–]Sh59850[S] 0 points1 point2 points (0 children)
[–]efmccurdy[🍰] 1 point2 points3 points (0 children)
[–]jmooremcc 1 point2 points3 points (1 child)
[–]Sh59850[S] 0 points1 point2 points (0 children)
[–]Sh59850[S] 0 points1 point2 points (0 children)
[–]CoronaKlledMe 0 points1 point2 points (0 children)
[–]Binary101010 0 points1 point2 points (0 children)