cmd error while using python code -


i new process of learning programming. going learn python first scripting language. downloaded python 3.6.2 , wrote simple "hello world " program in idle- works fine

and tried open file in command prompt , showing syntax error below.

c:\users\user>cd \code  c:\users\user>cd \code  c:\code> c:\code>hello.py     file "c:\code\hello.py", line 1    python 3.6.2 (v3.6.2:5fd33b5, jul  8 2017, 04:14:34) [msc v.1900 32 bit (intel)] on win32              ^   syntaxerror: invalid syntax  c:\code> 

my pc windows 10 , 64 bits

i searched solution , couldn't find any. please reply me if have solution

thank you!!

i'm not familiar windows cmd, in linux, run python terminal

python3 filename.py 

or make filename.py executable , run ./filename.py


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -