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 151 views
151 views asked Apr 11, 2019 by avibootz
1 answer 149 views
149 views asked Apr 11, 2019 by avibootz
1 answer 157 views
157 views asked Apr 11, 2019 by avibootz
1 answer 178 views
1 answer 175 views
...