Hello,
I am trying to understand what I am doing wrong?
I am following a step by step youtube video. I don’t understand why it’s not running on Pythonista? I even tried changing the interpreter to 2.7, still not running the code. There is no error message. It’s just not running. The play button blinks when I tap on it or use cmd (r), and nothing happens after that.
Here is the video link:
(I cannot proceed past the 12:50 mark since the code is not running)
https://youtu.be/miuHrP2O7Jw
Here is my code:
import random
import time
def displayIntro():
print("It is the end of a long year of fighting space criminals")
print("you come to a crossroads on your trip home, one path leads home")
print("where you will be handsomly rewarded for a job well done")
print("and the other leads through a gamma ray burst")
def choosePath():
path = ""
while path != "1" and path !="2": #input validation
path = input("Which path will you choose? (1 or 2): ")
return path
displayIntro()
choosePath()