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

Does being strong always mean being a fighter?explain
The mean of 6x, 3x and 5x is the same as the mean of 40, 50 and 36. Show all work! What is x? x= What are the 3 numbers in order from least to greatest?
PLEASE HELP WILL GIVE BRAINLY AND 5.0 RATING
Passage 1Passage 2 Read this excerpt from Silent Spring. Then a strange blight crept over the area and everything began to change. Some evil spell had settled o
Bag A 3Bag A Bag A has 3 yellow marbles, 2 red marbles, and 1 blue marble. Picking a red marble from Bag A is _______. certain likely unlikely impossible Bag B
if a:b=5:6and b:c=3:8 find a:b:c?
jharna is a good dancer and singer change into interrogative nagative sentences ?​
f a person walks 1 Km north, 5 km west south, and 7 km east, find the resultant displacement vector​
Please help me answer number 8 Needed by Sunday
What major problem did the earliest settlers of Amsterdam encounter? How did they solve the problem?