subject
Computers and Technology, 10.12.2021 21:00 Hali07

I need help desperatley with 10.1.2 codehs guess the word. here is my code...
def get_guess():
while True:
guess = input("Guess: ")
if isinstance(guess, int):
print("Your guess must be a lower case letter!")
else:
if guess. islower():
if len(guess) == 1:
return guess
else:
print("Your guess must have exactly one character!")
secret_word = "handrew"
while True:
guess = get_guess()
if guess in secret_word:
print("That letter is in the secret word!")
print(guess)
else:
print("That letter is not in the secret word!")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
I need help desperatley with 10.1.2 codehs guess the word. here is my code...
def get_guess(...
Questions
question
Engineering, 27.10.2020 23:30
question
Mathematics, 27.10.2020 23:30
question
Mathematics, 27.10.2020 23:30
question
Mathematics, 27.10.2020 23:30
question
Mathematics, 27.10.2020 23:30
Questions on the website: 13722363