How to print 0 as 0/1 in python

Viewed 28

I am trying to solve a probability based programming question in which I am supposed to give the output in fractions.If I get the answer as 0, I am supposed to output 0/1.

0 Answers
Related