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

which trinomial is equivalent to (3x-1)(x+4)
which trinomial is equivalent to (3x-1)(x+4)
Explain what is the same about two fractions that are like fractions
Explain what is the same about two fractions that are like fractions
what is the sum of 7/10 and 6/100
what is the sum of 7/10 and 6/100
which trinomial is equivalent to (3x-1)(x+4)
Explain what is the same about two fractions that are like fractions
which trinomial is equivalent to (3x-1)(x+4)
which trinomial is equivalent to (3x-1)(x+4)