SHARE
TWEET

Untitled

aveBHS Feb 21st, 2020 (edited) 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import randint
  2.  
  3. coin_sides = [' орел', 'а решка']
  4. print("Орел - 0\nРешка - 1\n")
  5. while True:
  6.     coin_forecast = int(input("Орел или решка? >> "))
  7.     coin = randint(0, 1)
  8.     if(coin_forecast == coin):
  9.         print(f"Верно, выпал{coin_sides[coin]}!")
  10.     else:
  11.         print(f"Не угадали, выпал{coin_sides[coin]} =(")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top