Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def function():
- print("Функция работает!")
- function()
- def search():
- num = words.count("клубника")
- if num != 0:
- print("Клубника найдена")
- else:
- print("В списке нет никаких клубник")
- words = ['Идет', 'бычок,', 'качается', 'вздыхает', 'на',
- 'ходу', 'ох,', 'доска', 'кончается', 'сейчас', 'я', 'упаду']
- while True:
- new = input("Введи новое слово -> ")
- words.append(new)
- search()
- def math(number):
- answer = number * 10
- print(f"Ответ: {answer}")
- x = int(input("Введи число -> "))
- math(x)
- def math(number):
- answer = number * 10
- return f"Ответ: {answer}"
- x = int(input("Введи число -> "))
- math(x)
- def math(number):
- answer = number * 10
- return f"Ответ: {answer}"
- x = int(input("Введи число -> "))
- print(ans)
- ans = math(x)
- def square(a, b):
- value = a * b
- return value
- def cube(num):
- result = square(num, num) * 2
- return result
- print(cube(3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement