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

The expression 3("2m + 5) - 6(4m - 2) can be written in the form am + b. What is the value of a + b?
Which method of popcorn popping transfers heat into the kernels without any direct contact (nothing hot touched the kernels)? Explain. Which method of popcorn
Which statement would most likely be made by someone against Manifest Destiny?
Which characteristic of a nation has the most significant impact on citizenship participation in governments throughout Southern and Eastern Asia? Group of ans
please help me with this a . 18 b . 16 c . 12 d . 9
A family of four goes to the movies. Each ticket costs x dollars and $10 for a drink and candy. Each member of the family got a ticket, drink, and candy. Write
SOMEONE PLEASE HELP EASY 10 POINTSSSS
I really need help which of these sets is a function?
Expand 3 (x2 + 2x – 7)
What impact did the 1826 Fredonian Rebellion have on the Mexico/Texas relations HURRY FREE BRAINLLY!!!!!!!!!