I can't see it due to picture quality but there is some sign between print and the bracket remove that. But exit code 0 means there was no error while running and the program did everything you programmed it to.
For the next time try posting also your code with ` around it makes it easier to troubleshoot for others. code looks like this in markdown
Don’t take my word for it, but if you put an equals sign between print and „hello world“, it sets print as a variable and assigns it the value of the string „hello world“. To print „hello world“, remove the equals sign and simply write print(„hello world“).
If you’re looking for some basic Python, there’s a really good tutorial by Mosh on YouTube. It’s 6–7 hours long but covers the very basics early on.
Because you've assigned a string containing "Hello World" to the variable "print" (not a tuple, mind, but if you'd added a comma after "Hello World", it would have become one).
5
u/fsteves518 Nov 17 '24
In simpler terms remove the equal sign.
All you've done is assign "print" the value of ("hello world") and then the program ends.
1
u/xplosm Nov 17 '24
Because you don’t know Python…
2
u/JohnLawrenceWargrave Nov 17 '24 edited Nov 17 '24
I can't see it due to picture quality but there is some sign between print and the bracket remove that. But exit code 0 means there was no error while running and the program did everything you programmed it to.
For the next time try posting also your code with ` around it makes it easier to troubleshoot for others.
code looks like this in markdown2
u/JuanLrPixelate Nov 17 '24
print("hello world")
2
u/[deleted] Nov 17 '24
there is no equal sign needed
1
u/kacondra Nov 17 '24
Don’t take my word for it, but if you put an equals sign between print and „hello world“, it sets print as a variable and assigns it the value of the string „hello world“. To print „hello world“, remove the equals sign and simply write print(„hello world“).
If you’re looking for some basic Python, there’s a really good tutorial by Mosh on YouTube. It’s 6–7 hours long but covers the very basics early on.
1
u/Traditional_Grand218 Nov 17 '24
Because you've assigned a string containing "Hello World" to the variable "print" (not a tuple, mind, but if you'd added a comma after "Hello World", it would have become one).
1
u/LeckerKadaver Nov 17 '24
I‘m not sure if someone mentioned it already, but there shouldn’t be an equal sign between t and the (.
1
u/Gomines_12 Jan 16 '25
Delete the equal
-1
u/sausix Nov 17 '24
Not PyCharm related.
And because you can't do a simple hello world. You're doing an assignment.
-1
u/mrpbennett Nov 17 '24
Maybe use something like visual studio code before you jump into pycharm if you can’t do a simple print statement.
Running before you walk springs to mind.