From 7266f34b8178b2b36ddb01e8aafc66a58a17b3c6 Mon Sep 17 00:00:00 2001 From: pelibby16 <pelibby16@earlham.edu> Date: Wed, 23 Oct 2024 15:32:05 -0400 Subject: [PATCH] add some comments --- topical-units/env-python/BASICS.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/topical-units/env-python/BASICS.md b/topical-units/env-python/BASICS.md index f7088ae..f51398d 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 -- GitLab