A. State the output of the following statements. a. print(format(‘Hello’,’>2’))           b. print(format(‘Hello’,’ c. print(format(‘Hello’,’>4’))           d. print(format(‘Hello’,’>20’)) B. State...

A. State the output of the following statements.

a. print(format(‘Hello’,’>2’))           b. print(format(‘Hello’,’


c. print(format(‘Hello’,’>4’))           d. print(format(‘Hello’,’>20’))


B. State the output of the following statements.


a. print(format(10,’>20’))                           b. print(format(‘10’,’


c. print(format(10.76121421431,’.2f’))    d. print(format(10.76121421431,’f’)


. Explain the use of end keyword with a suitable example.


C.  Explain character set supported by Python in detail.


D.  How are complex numbers displayed in interactive mode? Give an example.


E.  State the output of the following code.


num1 = ‘10’


num2 = ‘20’


sum = num1 + num2


print(sum)




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here