From cf125296f44e07de849a797aa34522ed87d42223 Mon Sep 17 00:00:00 2001 From: RoverMRX Date: Sun, 13 Apr 2025 21:55:09 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D1=83=D1=87=D0=B5=D0=B1=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chapter1Introdution/HW.py | 20 ++++++++++++++++++++ Chapter1Introdution/delete_gaps_case.py | 9 +++++++++ Chapter1Introdution/math.py | 7 +++++++ Chapter1Introdution/nick_case.py | 2 ++ Chapter1Introdution/quote_case.py | 1 + Chapter1Introdution/quote_case2.py | 3 +++ Chapter1Introdution/regname_case.py | 4 ++++ 7 files changed, 46 insertions(+) create mode 100644 Chapter1Introdution/HW.py create mode 100644 Chapter1Introdution/delete_gaps_case.py create mode 100644 Chapter1Introdution/math.py create mode 100644 Chapter1Introdution/nick_case.py create mode 100644 Chapter1Introdution/quote_case.py create mode 100644 Chapter1Introdution/quote_case2.py create mode 100644 Chapter1Introdution/regname_case.py diff --git a/Chapter1Introdution/HW.py b/Chapter1Introdution/HW.py new file mode 100644 index 0000000..3a9b7ad --- /dev/null +++ b/Chapter1Introdution/HW.py @@ -0,0 +1,20 @@ +message = "Hello World!" +print(message) + +name = "ada lovelace" +print(name.title()) +print(name.upper()) +name2 = name.upper() +print(name2.lower()) +first_name = "john" +last_name = "whick" +full_name = f" {first_name} {last_name} " +print(full_name) +print(full_name.rstrip()) +print(full_name.lstrip().rstrip()) +full_name = full_name.lstrip().rstrip() +print(full_name) + +message = 'One f Python's strength is its diverse community' +print(message) + diff --git a/Chapter1Introdution/delete_gaps_case.py b/Chapter1Introdution/delete_gaps_case.py new file mode 100644 index 0000000..331f215 --- /dev/null +++ b/Chapter1Introdution/delete_gaps_case.py @@ -0,0 +1,9 @@ +username = " Bearik " +print(f"{username} hello!") +username = username.rstrip().lstrip() +print(f"{username} hello") +print(2 / 3) +age = 14_000_000_000 +print(age) +x, y, z = 0, 5, 10 +print(x, y, z) \ No newline at end of file diff --git a/Chapter1Introdution/math.py b/Chapter1Introdution/math.py new file mode 100644 index 0000000..72fa512 --- /dev/null +++ b/Chapter1Introdution/math.py @@ -0,0 +1,7 @@ +# SAY HELLO TO MY LITTLE FRIEND +MY_FAVORITE_NUMBER = 7 +print(f"Мое любимое число: {MY_FAVORITE_NUMBER}") +print(5*3) +print(2**3) +print(4*2) +print(16/2) \ No newline at end of file diff --git a/Chapter1Introdution/nick_case.py b/Chapter1Introdution/nick_case.py new file mode 100644 index 0000000..08f6902 --- /dev/null +++ b/Chapter1Introdution/nick_case.py @@ -0,0 +1,2 @@ +name = "Eric" +print(f"Hello {name}, would you like to learn some Python today?") \ No newline at end of file diff --git a/Chapter1Introdution/quote_case.py b/Chapter1Introdution/quote_case.py new file mode 100644 index 0000000..4399705 --- /dev/null +++ b/Chapter1Introdution/quote_case.py @@ -0,0 +1 @@ +print('Albert Einstein once said, "A person who never made \na mistake never tried anything new."') \ No newline at end of file diff --git a/Chapter1Introdution/quote_case2.py b/Chapter1Introdution/quote_case2.py new file mode 100644 index 0000000..1062e8f --- /dev/null +++ b/Chapter1Introdution/quote_case2.py @@ -0,0 +1,3 @@ +famous_person = "Albert Einstein" +print(f'{famous_person} once said, "A person who never made \na mistake never' + + 'tried anything new."') \ No newline at end of file diff --git a/Chapter1Introdution/regname_case.py b/Chapter1Introdution/regname_case.py new file mode 100644 index 0000000..a908e11 --- /dev/null +++ b/Chapter1Introdution/regname_case.py @@ -0,0 +1,4 @@ +name = "erich bachman" +print(name.upper()) +print(name.lower()) +print(name.title()) \ No newline at end of file