def check_guess(letter, guess):
if letter == guess:
result = "You are correct"
elif letter < guess:
result = "It is too low" + letter == guess
elif letter > guess:
result = "It is too high" + letter == guess
else:
result = "It is an invalid input " + letter == guess
return result
print (check_guess(raw_input("What is your guess (lower case) ?"), raw_input("Please input one lower case alpha! ")))
解決策で「それは低すぎます」という文字列を表示できない理由を知りたいのですが?文字列とTrue/False
メインポストにコードを入れてください。 –