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 selectionSingle choice
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))
Log in for full answers
We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
Which of the following statements is NOT true for the following Python code:Assume that x is previously defined as an integer.if x >= 0: y = np.sqrt(x)
Which of the following is the output of p after the following commandsx = np.arange(-5,5.1,0.1)f = lambda y: y**2 + y - 5p = nppoly.polyfit(x, f(x), 2)
What is the value of A after the following Python code? C = np.array([[6, 1, 4],[2, 4, 5],[3, 7, 1]])A = C > 3
Question at position 18 Which of the following lines of code will run, but then give a runtime error?num = 10for i in range(10,3): num = num/inum = 10for i in range(3,3): num = num/inum = 10for i in range(-2,3): num = num/inum = 10for i in range(2,3): num = num/iClear my selection
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!