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

Find Each Product Simplify ( x ^ 2 + 9 ) ( x + 3 ) ( x - 3) HELP ME PLEASE!
how is the difference 14/15-5/12 written as a decimal?
The best source of internal motivation is from A. relaxation. B. positive self-talk. C. coworkers' approval. D. a good job.
What is the number of pairs of electrons shared in a molecule of N2? (1) 1 (3) 3 (2) 2 (4) 6
Which group on the Periodic Table has elements with atoms that tend not to bond with atoms of other elements? (1) Group 1 (3) Group 17 (2) Group 2 (4) Group 18
A student throws a 5.0-newton ball straight up. What is the net force on the ball at its maximum height? (1) 0.0 N (3) 5.0 N, down (2) 5.0 N, up (4) 9.8 N, down
A slingshot is used to launch a stone horizontally from the top of a 20.0 meter cliff. The stone lands 36.0 meters away. a. At what speed was the stone launche
Historians can trace people’s language to identify how they a. evolved. c. worshiped. b. migrated. d. ate.
What is 9 times 1/3 to the 2 power
What is the holy trinity? How does it affect the lifestyles of Christians in the modern world?