print(“Hello, World!”)
num1 = float(input(“Enter the first number: “))
num2 = float(input(“Enter the second number: “))
sum = num1 + num2
print(“The sum is:”, sum)
num1 = float(input(“Enter the first number: “))
num2 = float(input(“Enter the second number: “))
operation = input(“Enter operation (+, -, *, /): “)
if operation == “+”:
result = num1 + num2
elif operation == “-“:
result = num1 – num2
elif operation == “*”:
result = num1 * num2
elif operation == “/”:
result = num1 / num2
else:
result = “Invalid operation”
print(“The result is:”, result)
import time
seconds = int(input(“Enter time in seconds: “))
for i in range(seconds, 0, -1):
print(i)
time.sleep(1)
print(“Time’s up!”)
import time
seconds = int(input(“Enter time in seconds: “))
for i in range(seconds, 0, -1):
print(i)
time.sleep(1)
print(“Time’s up!”)