0

I write the python on IDLE like this (testing) >> a =("Hello World") >> print(a) i save it with ".py" why not work?

Syntax Error

3rd Jul 2017, 12:57 PM
Fariz Duta Nugraha
Fariz Duta Nugraha - avatar
5 Respuestas
+ 13
You have to open a new file and save it with the .py extension, then run it on the IDLE. Naturally in the file you should not insert the ">>" to prevent syntax errors. :) a = "Hello World" print(a)
3rd Jul 2017, 1:01 PM
Maz
Maz - avatar
+ 11
@Duta sure, you can also read a .py file via cmd/terminal. ;)
4th Jul 2017, 12:32 AM
Maz
Maz - avatar
+ 9
don't use >>
3rd Jul 2017, 1:31 PM
Ahri Fox
Ahri Fox - avatar
+ 1
@Maz it's can't open via CMD?
4th Jul 2017, 12:27 AM
Fariz Duta Nugraha
Fariz Duta Nugraha - avatar
+ 1
thanks @maz you're like my teacher :D
6th Jul 2017, 12:42 PM
Fariz Duta Nugraha
Fariz Duta Nugraha - avatar