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

Have you ever loved someone so much that you forget to love yourself?
Can someone please help me on this question
If the video is 200MB and the game is 100MB, what are the download speeds of the two files
Question refers to the image below. Photograph shows Richard Nixon on the steps of the presidential helicopter holding up both of his arms with his fingers in a
David drove 36 mph and reached camp in 1.5 hours. How long will it take him to drive home if he takes the same route and drives 45 mph?
3. If the circumference of a circle is 44 m, find its area.[tex]\pi[/tex]​
what is required to move an object​
Find the area of the SHADED region. Round to the nearest TENTH if necessary.
Someone help me pls thanks :)
Select the correct answer from each drop-down menu. For this data set, the best measure of center is the , and its value is .