fork download
  1. from random import *
  2.  
  3. direction = randint(1, 4)
  4.  
  5. if direction == 1:
  6. print("слева")
  7. elif direction == 2:
  8. print("справа")
  9. elif direction == 3:
  10. print("сверху")
  11. else:
  12. print("снизу")
  13.  
Success #stdin #stdout 0.01s 9536KB
stdin
Standard input is empty
stdout
справа