From 9009000e53dd15c02c8aa2b7eb958c410b5ed509 Mon Sep 17 00:00:00 2001 From: Junior Date: Tue, 25 Jun 2024 10:18:42 -0400 Subject: [PATCH] Clean up the wording/comments in basics --- Python/000_basics.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Python/000_basics.py b/Python/000_basics.py index 84ed562..f14324f 100644 --- a/Python/000_basics.py +++ b/Python/000_basics.py @@ -9,9 +9,17 @@ print("Hello world!") print("This is on a line.", end='') print(" This is on the same line!") -# This is a variable. A variable holds information like a string (letters and such), -# integers (whole numbers), arrays and objects (discussed later) +# In Python (and other languages) we can store and manipulate data +# by using variables. Variables are comprised of a name (the label +# we use to refer to that variable), and a value. +# We use an "assignment" to equate a name and a value. +# A variable can have nearly any value. Typical simple values may be +# a string (letters and such), integers (whole numbers), +# floats (numbers with both whole and fractional parts), +# and arrays and objects (discussed later). + # Our first "string" +# Below is a variable named "name". name = "Computer User" # We can print many things in one print command on one line by # separating them with commas