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

What term refers to a person’s position in society? A. role B. role set C. status D. status set
There is 45kg of mortar. The ratio of cement to sand in the mortar mix is 1 to 4. How many kg of cement is in the mortar
What is the Greatest Prime factor of 2^13 + 2^11 - 10? How can you solve this quick and without a calculator?
Help , Questions 9 and 10 plzzz I need it (15 points)
Which of these statements about John Reagan is MOST TRUE? A) He served as a spy for the Union army while working for the Confederacy B) Reagan was the governor
By combining what you enjoy with what you are good at, you will be able to start: A. interviewing for jobs. B. understanding your achievements. C. researching w
How many moles of potassium oxide will be formed when 1.52 moles of potassium reacts with oxygen according to the following equation: 4K + O2 -> 2K2O
solve for X: 39 - 7x = -4 (7x + 7) = 4
What is the solution to the equation 1.25+r=4? A. R=2.75 B. R=3.75 C. R=5.25 D. R=5.75
Which answer choice is it?