What are the different data types available in Python? Give examples.
Python has various built-in data types. Some common ones include:
- Integers:
42 - Floating-point numbers:
3.14 - Strings:
'Hello, Python' - Lists:
[1, 2, 3] - Tuples:
(1, 2, 3) - Dictionaries:
{'name': 'Rama', 'age': 25} - Sets:
{1, 2, 3}