From cd6eb8379a2d757a208bec4c13f19e6f12dee250 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 7 Mar 2025 20:02:36 +0800 Subject: [PATCH] ex2 --- ex2.py | 11 +++++++++++ ex3.py | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 ex2.py create mode 100644 ex3.py diff --git a/ex2.py b/ex2.py new file mode 100644 index 0000000..860ded8 --- /dev/null +++ b/ex2.py @@ -0,0 +1,11 @@ +# A comment, this is so you can read your program later. +# Anything after the # is ignored by python. + +print("I could have code like this.") + +# and the comment after is ignored. + +# you can also use a comment to "disable" or comment out code: +# print("This won't run.") + +print("This will run.") diff --git a/ex3.py b/ex3.py new file mode 100644 index 0000000..37a3780 --- /dev/null +++ b/ex3.py @@ -0,0 +1,3 @@ +print("I will now count my chinkens:") +print("Hens", 25 +30/6) +