Первый коммит учебы
This commit is contained in:
commit
cf125296f4
20
Chapter1Introdution/HW.py
Normal file
20
Chapter1Introdution/HW.py
Normal 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)
|
||||||
|
|
9
Chapter1Introdution/delete_gaps_case.py
Normal file
9
Chapter1Introdution/delete_gaps_case.py
Normal 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)
|
7
Chapter1Introdution/math.py
Normal file
7
Chapter1Introdution/math.py
Normal 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)
|
2
Chapter1Introdution/nick_case.py
Normal file
2
Chapter1Introdution/nick_case.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = "Eric"
|
||||||
|
print(f"Hello {name}, would you like to learn some Python today?")
|
1
Chapter1Introdution/quote_case.py
Normal file
1
Chapter1Introdution/quote_case.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print('Albert Einstein once said, "A person who never made \na mistake never tried anything new."')
|
3
Chapter1Introdution/quote_case2.py
Normal file
3
Chapter1Introdution/quote_case2.py
Normal 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."')
|
4
Chapter1Introdution/regname_case.py
Normal file
4
Chapter1Introdution/regname_case.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name = "erich bachman"
|
||||||
|
print(name.upper())
|
||||||
|
print(name.lower())
|
||||||
|
print(name.title())
|
Loading…
Reference in New Issue
Block a user