0
I cannot nun my programs
>>>print('hello world!') hello world! is that correct syntax
6 odpowiedzi
+ 1
Remove the '>' symbols, your program should run fine.
+ 2
okk thanx friends
+ 1
Where are you trying this code?
In the CodePlayground it works fine just remove the 3 '>' symbols, they are not included in the python syntax.
+ 1
print('Hello world!')
Just this ^ ... you do not need to repeat the words below that.
Side note: While Python allows strings to use either " " or ' ' .. using the double " " is a good habit to get into. when you move to other languages The single ' ' is used for chars. You don't have to use double with python, but it will help in the long run.
0
no it shows invalid syntax
0
this syntax(print('hello world!')) is for python3 in python 2 print "HelloWorld"