Int Input
Int Input
1
temperature = int(input("Enter the temperature in Fahrenheit:"))
Celsius = ((temperature-32)*(5/9))
print(f"{Celsius}ºC")
0.3
minutes = int(input("Enter the number of minutes:"))
days = minutes//(24*60)
hours = (minutes%(24*60))//60
minutes = (minutes%(24*60))%60
print(f"{days}d,{hours}h,{minutes}m")
0.4
import math
x1 = float(input("Enter coordinate x1:"))
y1 = float(input("Enter coordinate y1:"))
x2 = float(input("Enter coordinate x2:"))
y2 = float(input("Enter coordinate y2:"))
1.10
num1 = int(input("Number 1:"))
num2 = int(input("Number 2:"))
num3 = int(input("Number 3:"))
num4 = int(input("Number 4:"))
x=0
if num1%2 == 1:
x += 1
if num2%2 == 1:
x += 1
if num3%2 == 1:
x += 1
if num4%2 == 1:
x += 1
if x >= 2:
print("At least two of the numbers are odd.")
else:
print("Less than two numbers are odd.")
1.11
year = int(input("Introduce year:"))
BLO-1
age = int(input("What's your age?:"))
sex = input("What's your sex? (Female/Male):")
training = int(input("How many months have you been training?:"))
minweight = 20