Jump to content

[New To Python] Python IDLE Error [Ver. 3.3.3]

Snapy1

so whenever I try to print something in python it won't let me. 

 

 

>>> print "i"

SyntaxError: invalid syntax

>>> 

 

 

heres a image of it 

 

7mzqtbW.png

 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

stop spamming. you already made 3 threads

AMD Athlon X4 750k; Gigabyte F2A88XM-DS2; 8Gb Corsair XMS 1600 Mhz; AMD Hd5670 1Gb DDR3; Bequiet E6-600W; W7 Ultimate x64

#KILLEDMYWIFE                                                                                                                                                                                                                         so miner; very doge; much value   

Dell Vostro 5470: i5 4200U Nvidia GT740m 2Gb 14" 1366x768 Kingston V300 120Gb                                                                                              

Link to comment
Share on other sites

Link to post
Share on other sites

You're running Python version 3.*, so you need to use print() as a function:

print('Hello World')>>> Hello Worldprint 'Hello World'>>> SyntaxError: invalid syntax
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×