jeudi 19 décembre 2019

Phython confusiion [closed]

Hi I can't get my python program to work can you help heres the program and it won't work anywere i get errors on the last else: in the program,it refuses to work and its to show my work for a mentoring so please help

print('welcome to speachbot-2019we4')

name = input('What is your name?\n')
print('Hi, %s.' % name)
print('Hi, %s,do you like sports?' % name,)
sports=input()
if sports == 'yes':
    print('cool me too!')
    print ('whats your favorite')
    sports2=input()
    print('cool,I like %s too.' % sports2,)



else:
  print("nevermind then ")



print('do you like minecraft ')

stupid=input()
if stupid == 'yes':
  print('good,nice to know somebody else ')


else:
  print('then do you like fortnite')





stupid2=input()
if stupid2 == 'yes':
  print('bye')


else:
  {
  print('anything else that you like %s.  '%name)




  }

game=input()
if game == 'no':
  print('ok,goodbye %s' %name) 
  else:
  print('oh I like,%s too ' %game,)**

Aucun commentaire:

Enregistrer un commentaire