02. Data Types in Python
The commonly used data types in Python include numeric types, string types, boolean types, and composite types (sequences, indices, tuples), among others.Using the built-in function type(), you can check the data type of a variable. For example: a=2 b=type(a) print(b) # Output: <class 'int'> 1. Numeric TypesIncludes integers, floating-point numbers, etc. x=100 y=100.0 print('The data … Read more