Anastasiiauser

Untitled

Dec 6th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def F(a,n):
  2.     if n == 0:
  3.         return 1
  4.     elif a == 1:
  5.         return 1
  6.     else:
  7.         return a*a**(n-1)
  8. a, n = float(input('a = ')), float(input('n = '))    
  9. print(F(a,n))    
Add Comment
Please, Sign In to add comment