print ('hello, welcome to our bar')
age = int(input("What is your age"))
if age < 21:
print ('*kicks your ass out of bar*')
else:
print("come on in")
我可以运行代码并让它询问一个数字,一旦你在数字下输入数字,就会出现所需的输出。想要的是而不是输出看起来像
hello, welcome to our bar
What is your age25
come on in
我希望它看起来像
come on in
非常新很抱歉,如果这非常简单,我一直在寻找以前问过这个问题的人,但我找到的代码都没有工作