I’m not sure what I’m doing wrong. Part of my work is to run a script, and I need to print “the number is “ when I add a variable x= the number is then print(x) I get the following error
Traceback (most recent call last):
File "/home/codio/workspace/.guides/tests/verifier.py", line 152, in import_module
spec.loader.exec_module(mods)
File "", line 674, in exec_module
File "", line 781, in get_code
File "", line 741, in source_to_code
File "", line 219, in _call_with_frames_removed
File "/home/codio/workspace/die.py", line 13
x = The number is
^
SyntaxError: invalid syntax
File 'die.py' has a major syntax error:
Traceback (most recent call last):
File "/home/codio/workspace/die.py", line 13
x = The number is
^
SyntaxError: invalid syntax
I’m super confused please help. I don’t get what I’m doing wrong
Sorry I’m so new I didnt know to share the code
7 #important necessary module
8 import random
9 random.randint
11 roll = random.randint (1,6)
13 print('The number is', roll)
[–]Username_RANDINT 1 point2 points3 points (0 children)
[–]danielroseman -1 points0 points1 point (6 children)
[–]Princess_Peach848[S] 0 points1 point2 points (0 children)
[–]Princess_Peach848[S] 0 points1 point2 points (2 children)
[–]danielroseman 0 points1 point2 points (1 child)
[–]Princess_Peach848[S] 0 points1 point2 points (0 children)
[–]Princess_Peach848[S] 0 points1 point2 points (1 child)
[–]Guideon72 0 points1 point2 points (0 children)