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 bag has index cards with the following numbers on them: 4, 11, 13, 25, 12, and 18. If an index card is drawn randomly , what is the probabilty that a composit
What is a unit of area with dimensions 1unit x 1unit x 1unit= ?
If a+b=6 and a-b = 4, what is the value of 2a + 3b?
57% of 109 is what number? plz help
what percent of 126 is 22?
how many minutes is it before 12 noon if 20 minutes ago it was three times as many minutes after 9 am
what is 89 divided by 6 in long divison
A sighting from sea level to the top of a lighthouse was 60°. The lighthouse is known to rise 180 feet above sea level. What is the distance (to the nearest foo
Can anyone help me with turning fractions into decimals 2 1/2
use the function rule, y= 2x+5, to find the values of y when x =1,2,3,4. write the answers as ordered pairs that would be used to graph the function. show your