fork(1) download
  1. # your code goes here
  2. def F(n):
  3. a, b = 0, 1
  4. for i in range(n):
  5. a, b = b, a+b
  6. return a
  7.  
  8. dic = {20: F(20), 10: F(10)}
  9. print(dic)
Success #stdin #stdout 0.04s 9340KB
stdin
Standard input is empty
stdout
{10: 55, 20: 6765}