Первый коммит учебы

This commit is contained in:
RoverMRX 2025-04-13 21:55:09 +06:00
commit cf125296f4
7 changed files with 46 additions and 0 deletions

20
Chapter1Introdution/HW.py Normal file
View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -0,0 +1,2 @@
name = "Eric"
print(f"Hello {name}, would you like to learn some Python today?")

View File

@ -0,0 +1 @@
print('Albert Einstein once said, "A person who never made \na mistake never tried anything new."')

View File

@ -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."')

View File

@ -0,0 +1,4 @@
name = "erich bachman"
print(name.upper())
print(name.lower())
print(name.title())