Computer Science, asked by choudharybhavik1234, 6 months ago

Find the output of the code given below: 4

D={'U1':'Programming', 'U2':'Data structures', ‘U3':'Files', 'U4':'RDBMS','U5':'Networks'}

(a) print(len(D))

(b) print(D.pop('U1'))

(c) print(D.popitem())

(d) print(D.pop('U3'))

(e) print(D.get('U4'))

(f) print('U2' in D)

(g) print('Programming' in D)

(h) print('U3' not in D)​

Answers

Answered by Oreki
0

Output:

a. 5

b. Programming

c. ('U5', 'Networks')

d. Files

e. RDBMS

f. True

g. False

h. True

Answered by anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Answer:-}

Here are the output for the following codes in Python.

  1. 5
  2. Programming.
  3. ('U5', 'Networks')
  4. Files
  5. RDBMS
  6. True
  7. False
  8. True

Similar questions