@LearnPython3_
Learn Python For Free
4 years
Basic Data Types in #Python Data types are used to allow us to determine what operations we can perform on variables. Here are the different basic data types in #python : int float string boolean We use the function type(variable) to see the data type of a variable.
1
0
1

Replies

@LearnPython3_
Learn Python For Free
4 years
Data type int : It's just whole numbers or integers like 1, 50, 47 etc..
1
1
0
@LearnPython3_
Learn Python For Free
4 years
Data type float: It's decimal numbers like 10.5 , -12.8 , 458.0 etc...
1
1
0
@LearnPython3_
Learn Python For Free
4 years
Data type str : Consider str data types like raw text like "I like coding" , 'Enjoy life !!!' , """It's just me""". Those are different ways to declare str data type variables.
1
1
0
@LearnPython3_
Learn Python For Free
4 years
Data types bool: Booleans are used for Truthiness. A variable declared as a boolean has only two choices as content which are True and False.
0
1
0