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

prove that x^n-Y^n divisible by x-y for all natural numbers x,y (x!=y),and n.
two trains leave stations 408 miles apart at the same time and travel toward eachother. one train travels at 95 miles per hour while the other travels at 75 mil
How many ping pong balls would it take to fill a classroom that measures 22 feet by 16 feet by 9 feet? (Assume that a ping pong ball has a diameter of 1.5 inch
what were National and State Bank policies in the 1830's contributed to?
How do you say "Some brown spiders"?
If a 21 ounce box of cereal costa $2.94,what is the unit price.
find the slope of the line that contains (1,6) and (10, -9).
the cards in a card catalog are filed in what manner? A: by publication B: by subject C: alphabetically D: by call number
how is aluminium foil able to reduce heat loss through the walls of a house
In a parallelogram, one angle is 9 times the size of another. Find the measures of the angles.