No matter how simple it is, print() will cause all errors.
The same goes for copying from a beginner's site.
In Python 3, print
is a variable; call print
and
'tuple' object is not callable
The error message indicates that the variable print
contains tuple.
Perhaps such substitution has been carried out above the code provided.For example, the following code may be considered:
print=(text1, text2)
Or
print=text1,
However, it is also a tuple, depending on the comma at the end.
As you seem to be using the Jupiter Notebook environment, once you clear the code, the impact on the running kernel (such as the contents of the variable) will not disappear.You must restart the kernel (runtime) and run all cells.
© 2024 OneMinuteCode. All rights reserved.