this is python 3 I just did this program with numbers but I can't make it work with names. This is how I wrote it x=input ("write a actor from a famous movie:") if(x==Matt Damon):print ("Jason Bourne") else: print ("type another actor")
As I understand it's the == section that's wrong but I don't know why. My other thought is to write something like MattDamon=Jason Bourne etc. But that doesn't work either, I feel like I'm missing something minor to pull it off.
I would be very pleased if someone could help med, thnx!!
Aucun commentaire:
Enregistrer un commentaire