Домашние задания: Другие предметы

Информатика, помогите пожалуйста, составить код на языке Python ?? Очень нужно!!

Нужно решить 3 ЛЮБЫХ задачи из 1ой категории, любую 1 из второй, и любую 1 из третий
ну, как то так
1.1
print("Привет Мир!")
1.4
diameter = 10 # Replace with the value of the diameter
n = 3.14 # The value of n
circumference = n * diameter # Calculate the circumference
print(circumference) # Display the result
1.6
a = 10 # Replace with the value of a
b = 20 # Replace with the value of b
mean = (a + b) / 2 # Calculate the arithmetic mean
print(mean) # Display the result
2.1
a = 10 # Replace with the value of a
b = 15 # Replace with the value of b
if a % 2 == 0 and b % 2 == 1: # Check if a is even and b is odd
print(b) # Display b
elif a % 2 == 1 and b % 2 == 0: # Check if a is odd and b is even
print(a) # Display a
3.1
A = 10 # Replace with the value of A
B = 20 # Replace with the value of B
for i in range(A, B + 1): # Loop through the numbers from A to B
print(i) # Display the current number
# - комментарии, ну поменяешь на свои, мне удобнее на англ писать
О:
Оленька :)
217
Лучший ответ
  1. print('Привет мир')
  2. print(int(input())*4)
  3. print(int(input())**2)
Ivan Gurskii
Ivan Gurskii
15 161

Похожие вопросы