I'm trying to run some simple code while following a tutorial:
import random
courses = ['History', 'Math', 'Physics', 'CompSci']
random_course = random.choice(courses)
print(random_course)
I keep getting the error message:
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("factorial is",result)?
Could someone explain what the issue is? I'm not sure how to proceed given my basic understanding of python.
Aucun commentaire:
Enregistrer un commentaire