How to get the exponent of two fractions in Python

1 Answer

0 votes
from fractions import Fraction 
  
print(Fraction(18, 3) ** Fraction(4, 2))


'''
run:

36

'''

 



answered Apr 11, 2019 by avibootz

Related questions

1 answer 239 views
239 views asked Apr 11, 2019 by avibootz
1 answer 226 views
226 views asked Apr 11, 2019 by avibootz
1 answer 247 views
247 views asked Apr 11, 2019 by avibootz
1 answer 289 views
1 answer 262 views
...