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
Aprenda de maneira mais eficiente, de graça:
Introdução ao Python
7.1M de alunos
Introdução ao Java
4.7M de alunos
Introdução ao C
1.5M alunos
Introdução ao HTML
7.5M alunos