0
No output
Can anyone help me my code is saying no output . I did it like the course said. Please help me identify the mistake https://sololearn.com/compiler-playground/cAjVlHgihFBo/?ref=app https://sololearn.com/compiler-playground/cAjVlHgihFBo/?ref=app https://sololearn.com/compiler-playground/cAjVlHgihFBo/?ref=app
2 Answers
+ 10
print function should not have equal =
0
All about gaming ,
print=("Ok bye")
What that does is assign the value "Ok bye" to the name print. The parentheses are gratuitous, meaning you can add them freely, but they don't do anything. It's equivalent to this.
print = "Ok bye"
print used to be the name of a function you could call, but you assigned a new value to it and lost access to the function.
It's entirely legal syntax, but surely not what you intended to do.