From 85233d05a3530d306e0cc90c6734dc98a9b62217 Mon Sep 17 00:00:00 2001 From: Glory E <105065655+TayloredSuites@users.noreply.github.com> Date: Mon, 3 Apr 2023 17:49:32 +0100 Subject: [PATCH] Added to Updating Variables Added an extra line and a half of explanation --- 01-datatypes&variables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/01-datatypes&variables.py b/01-datatypes&variables.py index 4b9f17a..04ecf93 100644 --- a/01-datatypes&variables.py +++ b/01-datatypes&variables.py @@ -32,7 +32,7 @@ price = 4.99 # Boolean variable -is_active = True # Not true, it is case sensitive +is_active = True # Is true, it is case sensitive not_active = False # Not true, it is case sensitive # List variable @@ -47,7 +47,8 @@ # You can also update the value of a variable by assigning it a new value. For example, to update the value of the count # variable from the previous example, you can do: count = 43 -# This will change the value of count from 42 to 43. +# This will change the value of count from 42 to 43. Python scripts run from top to bottom. +# A new value under an old variable will result in the variable acquiring the most recent assigned value. # Conclusion # Variables are a fundamental concept in programming, and understanding how to use them is essential for writing effective code