Advertisement
ARDUINSHIK

СЛУЧАЙНЫЙ ВАРИАНТ

Jun 14th, 2020
824
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2.  
  3. a = str(input("Первый вариант: "))
  4. b = str(input("Второй вариант: "))
  5.  
  6. rand = random.randint(1, 2)
  7.  
  8. if rand == 1:
  9.     print(a)
  10.  
  11. elif rand == 2:
  12.     print(b)
Advertisement
RAW Paste Data Copied
Advertisement