There are 4 diffrent types of values in
Python
There are 4 diffrent types of values in
Python
String values are used for storing text. Example of defining a string value:
hi_mom = ("Hi Mom!")
hi_mom - the name of the value
("Hi Mom!") - the string value
Interger values are used for full numbers, whilst float values are used for storing decimal numbers. Example of defining both values:
interger = 10
float = 10.5
Boolean values are used for determening if something is true or false. Example of defining a boolean value:
is_cool = True
is_cool - the name of the value
("Hi Mom!") - the boolean value which can only be True or False