题海让大学四年没有难题
白天模式登陆

题目详情

单选题 What will be the output of the following Python code? >>> s=["pune", "mumbai", "delhi"] >>> [(w.upper(), len(w)) for w in s]

A. [PUNE, 4, MUMBAI, 6, DELHI, 5]

B. ['PUNE', 4, 'MUMBAI', 6,'DELHI', 5]

C. Error

D. [('PUNE', 4), ('MUMBAI', 6), ('DELHI', 5)]

Python程序设计(双语)课程封面

学科:Python程序设计(双语)

时间:2023-09-27 03:19:44

Copyright © 2022 津ICP备2021001502号