fork download
  1. def check_fermat(a, b, c, n):
  2. print('sraka kota' if a**n + b**n == c**n else 'Fermat was wrong')
  3.  
  4. check_fermat(1, 1, 2, 1)
  5. check_fermat(4, 4, 8, 3)
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
sraka kota
Fermat was wrong