diff --git a/topical-units/env-python/BASICS.md b/topical-units/env-python/BASICS.md index f7088ae268eb34a5a6322146fa8b708acea2a37c..f51398da9be5eb9697c824f21bfe75ec15e67c7a 100644 --- a/topical-units/env-python/BASICS.md +++ b/topical-units/env-python/BASICS.md @@ -37,13 +37,15 @@ A function is a way to package and reuse a piece of code. In the above example, ## Variables ```py -myInteger = 1234 -myFloat = 12.34 -myString = "This is also a variable" -myArray = [1,2,3,4,5] -myBoolean = True +myInteger = 1234 # An integer (whole number) +myFloat = 12.34 # A float (decimal number) +myString = "This is also a variable" # A string +myArrayOne = [1,2,3,4,5] # An array containing integers +myArrayTwo = [True, True, False] # An array containing booleans +myArrayThree = ["one", "two", "three"] # An array containing strings +myBoolean = True # A Boolean ``` -Variables allow us to store data and give it a name that can be referenced later. The stored information can be a number, a string, or a list of values (called an array). +Variables allow us to store data and give it a name that can be referenced later. Some examples of data that can be stored include numbers, strings, boolean (True/False value), and arrays (lists of other values). ## If statements ```py