The Student Room Group

Python says i havnt defined choice when i have i dont know whats wrong

(edited 7 years ago)
do you mean function? also have you defnined it properly with the right syntax? maybe if you included your code we could help you a bit more
Reply 2
Original post by Hashtosh302
do you mean function? also have you defnined it properly with the right syntax? maybe if you included your code we could help you a bit more


I've included my code in the drop box link
Maybe try

def menu():
choice = print("What would you like to do \n 1.Set the generation 0 values \n 2.Display the generation 0 values \n 3.Run the model \n 4.Export data \n 5 Exit")

Quick Reply

Latest