0

Hi guys please I have a problem with my pydroid 3 app

from sys import argv script,first,second,third= argv print("the script is called ", script) print("the first variable is ", first) print("the second variable is " , second) print("the third variable is " , third) The script is called: unfinished.py Your first variable is : first Your second variable is : second your third variable is : third Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 8 The script is called: unfinished.py ^ SyntaxError: invalid syntax [Program finished] This is what I got

7th Sep 2022, 11:26 PM
Mary Oreka
Mary Oreka - avatar
1 Answer
+ 6
you have to learn to understand error messages. It's telling you line 8 is invalid syntax. Delete those lines after print("the third variable is ", third) They are supposed to be the print result. Copy pasting is convenient, but you have to delete the parts that are not code.
8th Sep 2022, 1:18 AM
Bob_Li
Bob_Li - avatar