1.
print("Hello")
2.
print('Resalt: ', resalt)
3.
x = "Python"
y = "in"
z = "Ukraine"
print(x, y, z) #Python in Ukraine
4.
x = 1
y = "B"
print(x + y) - помилка
5.
name = "Taras"
print("Hey, %s!" % name)
6.
name = "Taras"
age = 25
print("Hello, {name}! You're {age} years old.")
Hello, {name}! You're {age} years old.
print(f"Hello, {name}! You're {age} years old.")
Hello, Taras! You're 25 years old.
7.
x = 12
y = 15
print("x = {0} y = {1}".format(x, y))
x = 12 y = 15
8.
x = 12
y = 15
print("x = {aa} y = {bb}".format(aa=x, bb=y))
x = 12 y = 15
9.
print(1,2, 3, sep = ' | ')
1 | 2 | 3
10.
print(1,2,3, end = '|') 1 2 3*** #заміняємо символ кінця рядка на |