私は単純なマッドリーブプログラムを作成しようとしています。私は複数のエラーを受けています。理由を理解できません。そのうちの1つは「ノアの最初のプログラム」の部分であり、もう1つはストーリー変数の印刷です。どうすれば修正できますか?マッドライブラリでのPython構文エラー
print "Noah's First Program!"
name=raw_input("Enter a name:")
adjectiveone=raw_input("Enter an Adjective:")
adjectivetwo=raw_input("Enter an Adjective:")
adjectivethree=raw_input("Enter an Adjective:")
verbone=raw_input("Enter a Verb:")
verbtwo=raw_input("Enter a Verb:")
verbthree=raw_input("Enter a Verb:")
nounone=raw_input("Enter a Noun:")
nountwo=raw_input("Enter a Noun:")
nounthree=raw_input("Enter a Noun:")
nounfour=raw_input("Enter a Noun:")
animal=raw_input("Enter an Animal:")
food=raw_input("Enter a Food:")
fruit=raw_input("Enter a Fruit:")
number=raw_input("Enter a Number:")
superhero=raw_input("Enter a Superhero Name:")
country=raw_input("Enter a Country:")
dessert=raw_input("Enter a Dessert:")
year=raw_input("Enter a Year:")
STORY = “Man, I look really %s this morning. My name is %s, by the way, and my favorite thing to do is %s. My best friend is super %s, because he owns a(n) %s and a(n) %s! What’s your favorite animal? Mine is a %s. I like to watch them at the zoo as I eat %s while %s. Those things are all great, but my other friend is even more interesting! She has a %s, and a lifetime supply of %s! She’s really %s, and her name is %s. She enjoys %s, but only %s times per day! She usually does it with %s. My favorite superhero is %s, but hers is %s. My third friend is named %s and is foreign. His family comes from %s, and their family name is %s. To wrap things up, my favorite dessert is %s, and I’m glad to have introduced you to my friends. Maybe soon I’ll introduce you to my fourth friend %s, but that will probably be in the year %s! I love %s!"
print STORY (adjectiveone,name,verbone,adjectivetwo,nounone,nountwo,animal,food,verbtwo,nounthree,fruit,adjectivethree,name,verbthree,number,name,superhero,superhero,name,country,name,dessert,name,year,nounfour)
エラーメッセージは何ですか?どのバージョンのPythonをインストールしましたか? –
アポストロフィをエスケープする必要がありますか? –
私は中かっこを見る。あなたはこれをWordなどで書いていましたか? – user2357112