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

A barbar wants to set up a salon in a room measuring length of 3m by 3m .He has a simple wooden chair,3 large mirrors and one bulb . a) using the knowledge of s
what is the meaning of a hybrid seed
Aiko says to find the LCM, you can just multiply the two numbers. As a teacher, how do you respond?​
What is the slope of the line passing through the points (2,-5) and (4, 1)? A 5/4B 3 C 2 D -4/5​
uld Carbon Dioxide be at its lowest level? A) July B) April C) January D) Ma What created the weather anomaly in the winter of 1980?
evaluate this equation (-5)^5/(-5)^-6
Study the equations: f(x)=11x-5 g(x)=-2x-4 What is h(x) = f(x) g(x)
True or false everyone in the colonies could vote
Plants store _____ energy in their tissues. A mechanical B heat C light D chemical
uld Carbon Dioxide be at its lowest level? A) July B) April C) January D) Ma What created the weather anomaly in the winter of 1980?