Question at position 15 A function named format_message has already been defined in the program. The function has the following signature: format_message(name: str, font_size: int) -> str: If the missing lines are filled in correctly, the program should ask the user for name and font size, then use the format_message function to generate the new formatted string. [table] # format_message defined above 11 def main():12 name = input('Enter your name: ')13 font_size = input('Enter a font size: ')14 # ( code WILL go here )15 print(message)16 17 main() [/table] Which of the following options is the correct missing code?14 message = format_message(name, font_size)14 message = format_message(int(name), float(font_size))14 format_message(name, int(font_size), message)14 message = format_message(name, int(font_size))Clear my selection单项选择题

A

14    message = format_message(name, font_size)

B

14    message = format_message(int(name), float(font_size))

C

14    format_message(name, int(font_size), message)

D

14    message = format_message(name, int(font_size))

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!