Following the tutorial for python, I found out that we can use print for the variable name, and it works fine. But after assigning a print variable, how can we return the original print function?
>>> print("Hello World!!") Hello World!!! >>> print = 5 >>> print("Hi")
Now the last call throws a TypeError error : the 'int' object cannot be called , since now the print has an integer value of 5.
But how can we return the original print functionality now? Should we use the class name for the print function or something else? Like in SomeClass.print("Hi") ?
Thanks in advance.
Albin source share