0

whats wrong in the below python code

def test(): print("Enter the name: ") s = input() test() Error : File "C:/My Folder/Python/Projects/Sample.py", line 8, in test s = input() TypeError: 'str' object is not callable

19th Aug 2017, 9:39 AM
ravi kumar
ravi kumar - avatar
1 Answer
+ 1
your code is absolutely correct
19th Aug 2017, 9:44 AM
Rishi Anand
Rishi Anand - avatar