This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.support.ui import Select | |
| from selenium.common.exceptions import NoSuchElementException | |
| from selenium.common.exceptions import NoAlertPresentException | |
| import unittest, time, re | |
| class UntitledTestCase(unittest.TestCase): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Сыграем в очко | |
| import random | |
| ocko = random.randrange(1,11) | |
| print(''' | |
| Добро пожаловать в игру ОЧКО ! | |
| Ну то есть 21 если по простому :) | |
| Правила: Набрать либо больше чем у противника, либо ровно 21 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| otvetov = [0] | |
| oshibok = [0] | |
| while True: | |
| zadanie1 = input('Для преобразования числа в строку выполните "___(100)') | |
| if zadanie1 in 'str, Str, STR': | |
| print('Верно') | |
| otvetov[0] += 1 | |
| break | |
| else: | |
| print('Не верно') |
NewerOlder