私はプログラミングとPythonの新機能です。私はスクリプトを書いています。顧客が空白を入力すると、スクリプトを終了します。 の質問はどうすれば正しいのですか? これは私の試みですが、私は例Pythonで空白の入力を確認する方法
userType = raw_input('Please enter the phrase to look: ')
userType = userType.strip()
line = inf.readline()
while (userType == raw_input)
print "userType\n"
if (userType == "")
print "invalid entry, the program will terminate"
# some code to close the app