str = input()
sub_string = str
with open("/name.txt") as file:
lines = file.readlines()
for line in lines:
if sub_string in line:
print(line)
def get_content(html):
soup = BeautifulSoup(html, 'html.parser')
test=[]
table = soup.find('div', class_='table-wrapper')
for rows in table.find_all('tr')[1:]:
test.append({'Пункт вещания':[city.text for city in rows.find_all('td')]})
return test
def outfile(test):
print(test)
testprint = get_content()
outfile(testprint)
import fake_useragent
user = fake_useragent.UserAgent().random
header = {
'user-agent': user
}
session.post(url, data, headers=header).text
if a - inter == 2:
print("число на 2 меньше")
if a- inter == -2:
print("число на 2 больше")
print('Угадай чисто от 0 до 15')
inter = int(input())
if a == inter:
print ("you win")
if a>inter:
i = inter
while i != a:
i = i+1
print("твое число на ",i-inter , "меньше")
if inter>a:
i = inter
n = 1
while i != a:
i = inter
i = i-1
print("твое число на ",inter-i , "больше")