in Python by
Q:
What is the output of the code shown below?

 D=dict(p='san', q='foundry')
'{p}{q}'.format(**D)

a. Error
b. {‘san’, ‘foundry’}
c. sanfoundry
d. san foundry

1 Answer

0 votes
by

The code shown above prints the values substituted for p and q in the same order. Note that there is no blank space between p and q. Hence the output is: sanfoundry

Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
+2 votes
asked Aug 14, 2019 in BlockChain by Robindeniel
0 votes
asked May 17, 2019 in Python by Derya
...