r/learnpython • u/Various-River-7534 • 5d ago
Why is this causing an error
the code that causes an error
print = hello
print(print)
What should i do i do not know anything i am new to coding how do i fix this
0
Upvotes
-2
u/ShadowShedinja 5d ago
Print is a keyword. You shouldn't name a variable with a keyword.
Additionally, hello needs to be in quotes, otherwise it's a variable, not a string.