Last active
July 14, 2023 22:24
-
-
Save CasperEngl/0ee5d2d86f5f50cf1c203eaa63ebb9ab to your computer and use it in GitHub Desktop.
Revisions
-
CasperEngl revised this gist
Jul 14, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,9 +15,9 @@ count = 0 count == 1 # compare count to 1 == False # count is still 0 count == 2 # compare count to 2 == False # count is still 0 print(count) # prints 0 -
CasperEngl revised this gist
Jul 14, 2023 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,12 @@ # Variables # =================== count = 0 # assign 0 to count print(count) # prints 0 count = 1 # assign 1 to count print(count) # prints 1 count = 2 # assign 2 to count print(count) # prints 2 # =================== # Boolean checks @@ -17,3 +21,15 @@ # count is still 0 print(count) # prints 0 # =================== # Variables with math # =================== count = 0 count = count + 1 # add 1 to count print(count) # prints 1 count = count + 1 # add 1 to count print(count) # prints 2 -
CasperEngl created this gist
Jul 14, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # =================== # Variables # =================== count = 1 # assign 1 to count count = 2 # assign 2 to count # =================== # Boolean checks # =================== count = 0 count == 1 # compare count to 1 # count is still 0 count == 2 # compare count to 2 # count is still 0 print(count) # prints 0