I have made a program that divides numbers and then returns the number, But the thing is that when it returns the number it has a decimal like this:
2.0
You could probably do like below
# p and q are the numbers to be divided if p//q==p/q: print(p//q) else: print(p/q)