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

French general defeated in the Battle of Waterloo
How does the magnetic force vary with distance?
If a sexually reproducing organism has 28 chromosomes in its body cells how many chromosomes did it inherit from each parent
What is a strong idea and how do strong ideas improve the process and product of writing?
A relation is plotted as a linear function on the coordinate plane starting at point e (0, 27)(0, 27) and ending at point f (5,−8)(5,−8) . what is the rate of c
Which one of the following words is an antonym of joyful
During which phase of the moon is the moon not visible? First quarter Full moon Last quarter New moon
What is a fifth of 65.20?
Solve using the quadratic formula. 5x^2+x+3=0
The revolution was almost two years old, and already there was talk of an impending crisis. What is the meaning of impending as it is used in the sentence? A.