Home > other >  Save the children, just learning python, write code problem, bosses, looking at it
Save the children, just learning python, write code problem, bosses, looking at it

Time:04-22

I want to enter a number, then to calculate the value of a, b, c, d, then compared the abcd size, output the smallest integer, hint I cannot convert a tuple to int, give advice, I write code is this:
Num=int (input (" input: "))
If num<=6:
A=(num * 0.45 * 60),
B=(num * 0.78 * 60),
C=(num * 0.6 * 60)
D=(num * 0.4 * 60)
Print (int) (a), b, c, d)
The else:
A=(num * 0.28 * 60),
B=(num * 0.4 * 60),
C=(num * 0.3 * 60)
D=(num * 0.15 * 60)
Print (a, b, c, d)
Error:
Traceback (the most recent call last) :
The File "H: \ Documents \ \ small application project price. Py", line 7, in & lt; module>
Print (int) (a), b, c, d)
TypeError: int () argument must be a string, a bytes - like object or a number, not 'a tuple
>