Computer Science
Which of the following functions will return key-value pairs of the dictionary?
- key()
- values()
- items()
- get()
Related Questions
Which function is used to remove all items from a particular dictionary?
- clear()
- pop()
- delete()
- rem()
Which one of the following is correct to insert a single element in a tuple?
- T = 4
- T = (4)
- T = (4, )
- T = [4, ]
Which of the following will delete key-value pair for key = "Red" from a dictionary D1 ?
- delete D1("Red")
- del.D1("Red")
- del D1["Red"]
- del D1
What will be the output?
D1 = { "Rahul":56, "Virat":99} print("virat" in D1)- True
- False
- No output
- Error