IDLE is registering if statements as syntax errors. My code is as follows:
import random ;\
print("Welcome to the fortune cookie simulator") ;\
print("\n\nThe fortune cookie minus the good part..") ;\
input("\n\n\nPress enter to recieve your fortune!") ;\
fortune = random.randint(1, 5) ;\
if fortune==1: ;\
print("You will die today") ;\
ifin the middle of a one-liner when if-blocks are determined by indentation?ifstatement is itself just one line, you can write the whole thing as one line.