In the last lesson, we learned about how to properly name variables. In this lesson, we will be using that knowledge to assign different data types to our variables. Below are the different types of data and when they should be used.
age=15 #int (Used when dealing with whole numbers)
price=12.99 #float (Used when dealing with numbers with a decimal place)
message="Hello" #str (Used for making a sequence of characters)
boolean=True/False #bool (Used when using true/false values)
How to use the print function: print(enter variable or data here)
How to use f string: print(f"Text goes here {variable} text)