The assignment is to write a program that spits out an odd number, a number, and then does basic arithmetic on those numbers. I've gotten it to spit out outputs fine, but I cannot seem to find a way to have the generated numbers be part of the equation. Here is the code I have:
odd = int(input("Please enter an odd number from 1 to 99: "))
print(int(odd))
num = int(input("Please enter a number from 1 to 200: "))
print(int(num))
print('odd + num =',odd+num)
print('odd - num =',odd-num)
print('odd * num=',odd*num)
print('odd / num =',odd/num)
print('odd + num =',num+odd)
print('odd - num =',num-odd)
print('odd * num =',num*odd)
print('odd / num =',num/odd)
I need the 'odd / num =' section to be replaced with the numbers generated, but I'm unsure as to how to do that and my textbook says nothing about it.
Any help would really be appreciated.