Mastery 04 - Basic Types in Python
Values are fundamental in programming. We often refer to these values as objects but it is also common to simply call them values. Objects are classified into different classes or data types:
Integer: Used to convert a value to a integer. As shown in the program if we print the value 62 it will only display 62 since it is a integer but if we decide to print(int(4.67)) it will display only four making the value a integer.
String: Used to describe a value that must be evaluated as text. In the program is shown how we printed the words “Hello World” as a string since it should be evaluated as text in our program. If we decide to print 62 as a string it will only be evaluated as text and will not take in account that it is a number.
Float: Used to describe floating point numbers or better known as decimal numbers. As shown, if the value is an integer (example: 62) and we decide to print it as a floating point number the program will display 62.00
Boolean: Used to define if a condition or a value is True or False.
Complex: Used to describe values that have a real and an imaginary part.














