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