Python Data Types Questions and Answers
Python Programming - Data Types Questions with Answers explain how Python stores and handles different types of data. These Python Data Types Questions are important for TCS, RRB, and SSC exams to strengthen programming fundamentals
Python Data Types
Showing 10 of
24 questions
21. Which method removes and returns the last item from a list?
- remove()
- pop()
- delete()
- cut()
23. Which creates a dictionary with keys 'a' and 'b'?
- dict(a=1, b=2)
- {'a': 1, 'b': 2}
- dict([('a', 1), ('b', 2)])
- All of the above