问题是在if语句后的if语句无效语句。请帮助。
print("Welcome to the Project Hotel ")
print("Enter the following Pins to Enter the Following Areas : ")
print("A = Pin for the Visitor Management is 1111")
print("B = Pin for the Room Management is 2222")
print("C = Pin for the Bill Management is 3333")
A=int(input("Enter the 4-Digit Pin here - "))
If A==1111:
print("Welcome to the Visitor Management Section")
if A==2222:
pass
if A==3333:
print("Total Amount =(Total Room amount + Food amounts + Extras)")
print("VAT here is 4.5% * (Total Amount)")
print("Final Amount = Total amount + VAT")
Hotel.close()
答案 0 :(得分:3)
“if”语句应以小写形式输入。检查你的缩进,它们可能有问题。
答案 1 :(得分:0)
你在第一个if语句中使用了大写字母I.