What will be the output of the following Python code snippet?
print(‘The sum of {0} and {1} is {2}’.format(2, 10, 12))
a) The sum of 2 and 10 is 12
b) Error
c) The sum of 0 and 1 is 2
d) None of the mentioned
Answer: a
Explanation: The arguments passed to the function format can be integers also.
Related Posts
RBAC is abbreviated as ______________
DTE is abbreviated as ___________________
_______________ in a system is given so that users can use dedicated parts of the system for which they’ve been given access to.
MAC is abbreviated as _______________
In a Linux-based system, the accounts may be members of 1 or more than one group.
In your Linux-based system, you have to log-in with your root account for managing any feature of your system.
Using the ______ account of a UNIX system, one can carry out administrative functions.
Join The Discussion