VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Find Longest Substring / Guessing Game - Python Basics with Sam

Find Longest Substring / Guessing Game - Python Basics with Sam

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Find Longest Substring / Guessing Game - Python Basics with Sam Arthur: Is Your Number 50-
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

Comments and reviews: 2


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

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






Other channel videos