Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping problem
#2
the indentation is not correct

name = input ('What is your name?')
print("hello " + name)
spanishs = input('Can you say my name is in Spanish?')
 
for spanish in spanishs:
    if spanish == 'me llamo':
        print('Si. Correcto')
    else:
        print('Intento equivocado otra vez. ' 'Wrong, try again!')
Reply


Messages In This Thread
Looping problem - by IMissedTheBus - Sep-03-2018, 11:43 AM
RE: Looping problem - by Axel_Erfurt - Sep-03-2018, 12:25 PM
RE: Looping problem - by ichabod801 - Sep-03-2018, 12:45 PM
RE: Looping problem - by IMissedTheBus - Sep-03-2018, 01:08 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020