+ 1
Is there is a concept of data types in python??
4 Answers
+ 10
Yes but it's built in .
While defining a variable , you need not to define the data type in python which is a good feature of python
You can write
x=43 instead of writing int(x)=43
There are various datatypes such as :
Numbers :
1. integers
2. Float
3. Bool
4. Imaginary
Sequence:
1. Tuples
2. Lists
3. Strings
Sets
Mapping:
1. Dictionary
And at last we have None data type which defines absence of a value.
Thanks
+ 4
primitive and non-primitive data types python
google that :)
+ 3
Python is also dynamically typed.
+ 2
You're half through your tutorial, and you don't know yet? o_O
There are all sorts of built in types like str, int, float, list, dict etc., and you can define your own with class.
You'll learn more about it in the OOP sections.