Hi! I'm using IDLE.

Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> test = 1
>>> if test:
	print "ok"
	
SyntaxError: invalid syntax (<pyshell#2>, line 2)
>>>

Does someone can help me?
Thanks.

You're using python 3.0. print is no longer a statement, but a function, so you have to use print("ok"). I suggest you do some research on how py3k is different from python 2x before you attempt to use it.

You're using python 3.0. print is no longer a statement, but a function, so you have to use print("ok"). I suggest you do some research on how py3k is different from python 2x before you attempt to use it.

thanks!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.