cleanbeengreen cleanbeengreen
  • 02-11-2020
  • Computers and Technology
contestada

4.1 code practice edhesive
What am I doing wrong

41 code practice edhesive What am I doing wrong class=

Respuesta :

Cytokine
Cytokine Cytokine
  • 02-11-2020

Your code is improperly indented.

The correct code looks like:

def main():

   while True:

       name = input("Please enter a name: (Nope to end) ")

       if name == "Nope":

           return

       print("Nice to meet you {}".format(name))

main()

I hope this helps!

Answer Link

Otras preguntas

what is the total cost of a $150 necklace if the tax is 6.5%
Tim needs 23 3/4 m of wood trim to remodel a room. Wood trim is sold in lengths of 1 1/4 m. How many pieces of wood trim does Tim need to buy?
What are the advantages of a specific defense? What are the advantages of a nonspecific defense? IF ANSWERED YOU WILL GET 26 POINTS
a femme fatale is what type of character
You should select whichever outfit makes you feel the best. How is the dependent noun clause functioning in the sentence? A) subject B) direct object C) p
what is a long narrative poem involving a hero or heroes caled?
What is the motif of the three little pigs?
What is the solution set of the following equation? -8x + x + 15 = -7x + 12
Simplify the expression. 7(3x + 5y) + 4y
Health Help Which is not a recommended way of quitting smoking A)going "cold turkey" B)wearing a nicotine patch C)smoking "light" cigarettes D)developing a quit