Question at position 3 What will the following code print? name = "Alice" age = 30 print(f"{name} is {age} years old.")Alice is thirty years old.name is age years old.Alice is 30 years old.Alice is 30Clear my selection单项选择题
A
Alice is thirty years old.
B
name is age years old.
C
Alice is 30 years old.
D
Alice is 30
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
What will the following code print? n = 2.71576print(f"The value of n = {n:4.2f}")
How do you declare an f-string in Python?
In which of the following scenarios can f-strings be used?
Question at position 3 What will the following code print? number = 7 print(f"Number with formatting: {number:04d}")Number with formatting: 007Number with formatting: 7Number with formatting: 7.000Number with formatting: 0007Clear my selection
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!