18th Apr 2024, 5:06 PM
All about gaming
All about gaming - avatar
2 Answers
+ 10
print function should not have equal =
18th Apr 2024, 5:16 PM
A͢J
A͢J - avatar
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.
19th Apr 2024, 9:26 AM
Rain
Rain - avatar