fork(1) download
  1. def check_fermat(a, b, c, n):
  2. a**n + b**n == c**n and not print('Fermat was wrong') or print('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