fork download
  1. def func(x):
  2. p = 0
  3. i = 0
  4. string = "qwertyuiopasdfghjklzxcvbnm"
  5. if(x != "m"):
  6. while(i < len(string)):
  7. if(string[i] == x):
  8. p = i
  9. i += 1
  10. print(string[p + 1])
  11. else:
  12. print("q")
  13. x = input()
  14. func(x)
Success #stdin #stdout 0.02s 9144KB
stdin
m
stdout
q