+ 1

Is there is a concept of data types in python??

8th Aug 2019, 4:05 PM
rahul sri
rahul sri - avatar
4 Respostas
+ 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
8th Aug 2019, 5:14 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 4
primitive and non-primitive data types python google that :)
8th Aug 2019, 5:19 PM
Brave Tea
Brave Tea - avatar
+ 3
Python is also dynamically typed.
9th Aug 2019, 1:16 AM
Sonic
Sonic - avatar
+ 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.
8th Aug 2019, 4:52 PM
HonFu
HonFu - avatar