import datetime
d1 = datetime.datetime (2018, 5, 3)
d2 = datetime.datetime (2018, 6, 1)
print("d1 is greater than d2:", d1 > d2)
print("d1 is less than d2:", d1 < d2)
print("d1 is not equal to d2:", d1 != d2)
d1 is greater than d2: False d1 is less than d2: True d1 is not equal to d2: True
num1 = int (input("enter first number:"))
num2 = int(input("enter second number:"))
print("enter which operation would you like to perform?")
ch = input("enter any of these char foe specific operation +, -, *, /:")
result = 0
if ch == '+':
result = num1 + num2
elif ch == '-':
result = num1 - num2
elif ch == '*':
result = num1 * num2
elif ch == '/':
result = num1 / num2
else:
print("input character is not recognized!")
print(num1, ch, num2, ":", result)
enter first number:4500 enter second number:3200 enter which operation would you like to perform? enter any of these char foe specific operation +, -, *, /:+ 4500 + 3200 : 7700
num1 = int (input("enter first number:"))
num2 = int(input("enter second number:"))
print("enter which operation would you like to perform?")
ch = input("enter any of these char foe specific operation +, -, *, /:")
result = 0
if ch == '+':
result = num1 + num2
elif ch == '-':
result = num1 - num2
elif ch == '*':
result = num1 * num2
elif ch == '/':
result = num1 / num2
else:
print("input character is not recognized!")
print(num1, ch, num2, ":", result)
enter first number:4500 enter second number:3200 enter which operation would you like to perform? enter any of these char foe specific operation +, -, *, /:- 4500 - 3200 : 1300
num1 = int (input("enter first number:"))
num2 = int(input("enter second number:"))
print("enter which operation would you like to perform?")
ch = input("enter any of these char foe specific operation +, -, *, /:")
result = 0
if ch == '+':
result = num1 + num2
elif ch == '-':
result = num1 - num2
elif ch == '*':
result = num1 * num2
elif ch == '/':
result = num1 / num2
else:
print("input character is not recognized!")
print(num1, ch, num2, ":", result)
enter first number:4500 enter second number:3200 enter which operation would you like to perform? enter any of these char foe specific operation +, -, *, /:* 4500 * 3200 : 14400000
num1 = int (input("enter first number:"))
num2 = int(input("enter second number:"))
print("enter which operation would you like to perform?")
ch = input("enter any of these char foe specific operation +, -, *, /:")
result = 0
if ch == '+':
result = num1 + num2
elif ch == '-':
result = num1 - num2
elif ch == '*':
result = num1 * num2
elif ch == '/':
result = num1 / num2
else:
print("input character is not recognized!")
print(num1, ch, num2, ":", result)
enter first number:4500 enter second number:3200 enter which operation would you like to perform? enter any of these char foe specific operation +, -, *, /:/ 4500 / 3200 : 1.40625