this is the code I have so far that keeps bringing up a "syntax error" for the colon on the first if statement
shoppinglist = ["milk","bread","rice"]
print("this is your current list",)
print(shoppinglist)
def ideas():
idea=str(input("is this your final list??")
if idea in ['y', 'Y', 'yes', 'Yes', 'YES']:
print("your list is" + shoppinglist)
please help.
Aucun commentaire:
Enregistrer un commentaire