题海
让大学四年没有难题
首页
搜题
登陆
题目详情
填空题
print(21 or 22)的打印结果是
查看答案
学科:
Python语言程序设计
时间:
2025-05-17 08:24:06
相关题目
相关作业
题目1
单选题
score = int(input("Please input your score:")) if score >= 90: print("Great!") elif score >= 75 and score < 90: print("Good!") elif score >= 60 and score < 75: print("Passed!") else: print("Failed!") 提问:当输入75时,答案应该是什么
A. Great
B. Good
C. Passed
D. Failed
题目2
单选题
car = "BMW" if car == "BMW": print(car.lower()) 该程序的打印结果是
A. BMW
B. bmw
C. Bmw
D. 会报错
题目3
填空题
阅读以下题目并回答: 游乐场对所有7周岁以下的孩子免票,对所有大于65岁以上的老人半票,7-65岁之间的人全票60元, 请阅读该程序,填上缺少的内容,实现根据年龄打印应收票价的功能: birth_year = int(_______("请输入身份证上的出生年份:")) age = 2021-_______ price = 60 if age <= 7: print("免票入场!") elif age >= 65: print("票价为:{}元".format(_____*0.5)) ______: print("票价为:{}元".format(price))
题目4
填空题
下面程序的输出结果是( )? if True or False and False: print('yes') else: print('no')
题目5
填空题
fruits = ['apple','banana','orange','cherry'] print('mango' not in fruits) 该程序的打印结果是( )
题目6
填空题
fruits = ['apple','banana','orange','cherry'] print('mango' in fruits) 该程序的结果是( )
题目7
填空题
car = "BMW" 那么 car == "BMW" 的返回值是( )
题目8
填空题
print(21 and 22)的打印结果是
题目9
填空题
print(21 or 22)的打印结果是
题目10
判断题
在if 条件语句中,实现多种分支条件下的程序结构,else 语句不是必须的
A. 正确
B. 错误
下载
题海APP
拍照搜题更快捷
海量题库
无搜索限制
快捷拍照搜题
扫描他!然后带走我~