Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What are different data types in python
1. Numeric Types int: Represents integers (e.g., 5, -3, 100). float: Represents floating-point numbers, or decimals (e.g., 3.14, -0.001, 2.0). complex: Represents complex numbers with a real and imaginary part (e.g., 3+4j). 2. Sequence Types str: Represents strings, which are sequences of charactersRead more
1. Numeric Types
5,-3,100).3.14,-0.001,2.0).3+4j).2. Sequence Types
"hello","Python").[1, 2, 3],["apple", "banana"]).(1, 2, 3),("apple", "banana")).range(10)).3. Mapping Type
{"name": "Alice", "age": 25}).4. Set Types
{1, 2, 3},{"apple", "banana"}).5. Boolean Type
TrueorFalse.6. Binary Types
b'hello').7. None Type
- NoneType: Represents the absence of a value or a null value (
See lessNone)