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

WILL GIVE BRAINLIEST IF FAST!! GIVE GOOD REVIEWS FOR CORRECT ANSWERS!
Silver, gold, platinum, are ferrous metals. TRUE OR FALSE
WILL GIVE BRAINLIEST IF ANSWERED FAST!!!
What is a 'call to action' in regards to persuasive speaking?
Given question is in attachment
An airplane is preparing to land at an airport. It is 51,300 Feet above the ground and it is descending at a rate of 3100 feet per minute. At the same airport,
Which one replace the question mark?​
WILL GIVE BRAINLIEST IF FAST!! GIVE GOOD REVIEWS FOR CORRECT ANSWERS!
Frederick Taylor believed that workers are primarily motivated by money or economic gain, and advocated an incentive pay system to motivate employees. Frederick
Internet communication is a revolution in the field of communication. Justify​