Question: ( 1 0 ) Look at the following string variables. We want to format these strings for output. Which of the following correctly formats the

(10) Look at the following string variables. We want to format these strings for output. Which of the following correctly formats the string using the interpolation method so that the output is Becky 32?
name =?' Becky'
age =32
A.
print("%d %s"%(name, age))
B. print("%s %d"%(name, age))
c.
print({}{}. format(age, name))
D.
print({}{}. format(name, age))
 (10) Look at the following string variables. We want to format

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!