1

I keep getting 0 if I simply divide in python. Is there any way that we get get a solution? I even tried doubleslash, same result.

The following is the code:

print(5/10)

0
metron
  • 201
  • 1
  • 6
  • 1
    You should upgrade to Python 3. – khelwood Jul 01 '20 at 19:57
  • 2
    In Python 2, `/` between two `int` objects is always equivalent to `//` in Python 3. You'd have to use a `float` object to get full division. Probably, you should just use Python 3, since Python 2 is no longer supported (and over a decade out of date...) – juanpa.arrivillaga Jul 01 '20 at 20:07

0 Answers0