Having trouble running tge python script. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Having trouble running tge python script.

My script running successfully here but not working in the terminal

6th Jul 2017, 4:27 AM
JULIAN ANTHONY
JULIAN ANTHONY - avatar
5 Answers
+ 11
What's the error or code? It could be that you're running Python2 instead of Python3.
6th Jul 2017, 4:29 AM
Ahri Fox
Ahri Fox - avatar
+ 7
@JULIAN ANTHONY yes, although to beginners it may only appear that the difference is parentheses around print [print "thing" vs print("thing")] I noticed you said terminal though. I recommend you either download notepad++ or pycharn(community edition) to write your code instead.
6th Jul 2017, 9:55 AM
Ahri Fox
Ahri Fox - avatar
+ 6
if you used notepad++, you can open it with python.exe . if you did pycharm, after configuring your python version you can just press run
7th Jul 2017, 2:25 AM
Ahri Fox
Ahri Fox - avatar
+ 1
is python2 different from python 3?
6th Jul 2017, 5:52 AM
JULIAN ANTHONY
JULIAN ANTHONY - avatar
+ 1
ok then after writing my code where should I run it?
6th Jul 2017, 11:24 AM
JULIAN ANTHONY
JULIAN ANTHONY - avatar