私はコーディングにかなり慣れていないので、理解できない、または答えを見つけることができない問題に遭遇しました。
基本的に、ユーザーが raw_input に yes を入力するたびに、「if」文字列が吐き出されますが、「else」文字列は除外されません。
遅延が干渉しているためだと思いますが、正しく設定していないため、コードでは (If、For、Else)、For がコードを妨げている可能性がありますが、わかりません。助けていただければ幸いです。:)
import sys
import time
string = 'Hello comrade, Welcome!\n'
for char in string:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(.03)
time.sleep(1)
x=raw_input('Are you ready to enter the fascinating Mists of Verocia? ')
if x == 'yes':
string = "Verocia was a mystical land located just south of Aborne"
for char in string:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(.03)
else:
print ('Please restart program whenever you are ready!')