commit cf125296f44e07de849a797aa34522ed87d42223 Author: RoverMRX Date: Sun Apr 13 21:55:09 2025 +0600 Первый коммит учебы 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