
Find Longest Substring / Guessing Game - Python Basics with Sam
video description
Traceback (most recent call last):-
File -C:/Users/potato/Desktop/Python/Training Script !.py-, line 433, in -
resp = input('''Enter 'h' To Indicate If The Guess Is Too High.-
TypeError: 'str' object is not callable
this is coming in my error prompt for some reason !! I already tried everything and I don't know what is the problem !
I tried remaking the code by myself and the same problem happens !
Date: 2022-03-14
Related videos
Comments and reviews: 2
heart
OMG that TypeError for the number guessing game was driving me nuts but I figured it out! you defined input at the top of the algorithm when you prompt the user to pick a number between 1 and 100 and to press enter. So now the program thinks that input is a variable assigned to the string captured when the user presses enter. Just rename the variable to something else like prompt and the code should work
reply
OMG that TypeError for the number guessing game was driving me nuts but I figured it out! you defined input at the top of the algorithm when you prompt the user to pick a number between 1 and 100 and to press enter. So now the program thinks that input is a variable assigned to the string captured when the user presses enter. Just rename the variable to something else like prompt and the code should work
reply
sangwon
Im a sleep expert who maintained a high level of sleeping pattern for 8 hours straight for the past 23 years
Along with advanced food consuming skills
And i approve the existence of this video
reply
Im a sleep expert who maintained a high level of sleeping pattern for 8 hours straight for the past 23 years
Along with advanced food consuming skills
And i approve the existence of this video
reply
Add a review, comment















