Загрузка данных


# Задача 3

a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]

c = []

for i in a:
    if i in b and i not in c:
        c.append(i)

print(c)

# Задача 4

a = [1, 2, 3, 4, 5]
b = [2, 4]

for i in a:
    if i not in b:
        print(i)


# Задача 5

text = input("Введите строку: ")
symbol = input("Введите символ: ")

count = 0
i = 0

while i < len(text):
    if text[i] == symbol:
        count += 1
    i += 1

print("Количество:", count)

# Задача 6

n = int(input("Введите расстояние: "))

days = n / 200

print(days)


# Задача 7

name = input("Имя: ")
age = input("Возраст: ")
game = input("Нравится игра?: ")

print("Анкета")
print("Имя:", name)
print("Возраст:", age)
print("Ответ:", game)


# Задача 8

seconds = int(input("Введите секунды: "))

hours = seconds // 3600
minutes = (seconds % 3600) // 60
sec = seconds % 60

print(hours, "час")
print(minutes, "мин")
print(sec, "сек")



# Задача 10

S = float(input("Площадь зала: "))
R = float(input("Радиус сцены: "))

pi = 3.14

circle = pi * R * R

if circle <= S:
    print("Можно")
else:
    print("Нельзя")