import requests
from bs4 import BeautifulSoup
url1 = 'https://vstup.osvita.ua/y2020/r27/82/706500/'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36'}
cs = requests.get(url1, headers=headers)
# допустим фамилия вот такая
lname = "Сокол"
soup = BeautifulSoup(cs.content, 'html.parser')
table = soup.find("table", {"class": "rwd-table"})
list_family = []
for tr in table.find_all("tr", {"class": "rstatus6"}):
for td in tr.find_all("td"):
if td["data-th"] == "ПІБ":
list_family.append(td.get_text())
# print(list_family)
# print()
result = []
for family in list_family:
# print(family)
print(family.lower().split(" ")[0])
if lname.lower() in family.lower().split(" ")[0]:
print("ok")
result.append(family)
print("=="*30)
if len(result) > 0:
print(result)
else:
print("Такой абитуриент не найден")
def triangle(a, b, c):
#Отсортируем стороны в порядке возрастания для удобства
a, b, c = sorted([a, b, c])
if c < a + b:
if is_equilateral(a, b, c):
print("Equilateral")
elif is_right(a, b, c) and is_isosceles(a, b, c):
print("Right isosceles")
elif is_right(a, b, c):
print("Right")
elif is_isosceles(a, b, c):
print("Isosceles")
else:
print("Simple")
else:
print("Triangle doesn't exist")
repeat = input("Repeat - y\nExit - n\n")
if repeat == "y":
triangle1()
elif repeat == "n":
print("Shutting down")
start = input("1 - English\n2 - Русский\n")
if start == "1":
triangle1()
elif start == "2":
triangle2()
c=±a±b
a=±c±b
b=±a±c
|a|=|b|=|c|
.intro_last {
position: absolute;
right: 0;
}
<!-- Intro start -->
<div class="intro">
<div class="container">
<div class="intro_inner">
<img class="intro_round" src="img/intro/riph.png" alt="Iphone">
<div class="intro_p1">
<div class="intro_start">
<img class="intro_earth" src="img/intro/earth.png" alt="earth">
<div class="intro_text1">
App of<br> the year
</div>
</div>
<h1 class="intro_textM">My apps shoecase</h1>
<h2 class="intro_textS">Lorem Ipsum is simply dummy text .....</h2>
<div class="intro_buy">
<i class="fas fa-shopping-cart"></i>
<a class="cartText" href="#">Buy now</a>
</div>
</div>
<div class="intro_last">
<a href="http://piccy.info/view3/13642478/c35a5f7f1efd3926282063b15e9247b5/" target="_blank"><img
src="http://i.piccy.info/i9/e9c54fb1611ee0eade25ff9f529ad149/1581110018/2988/1361251/slider.png"
alt="Piccy.info - Free Image Hosting" border="0"/></a><a
href="http://i.piccy.info/a3c/2020-02-07-21-13/i9-13642478/356x135-r" target="_blank"><img
src="http://i.piccy.info/a3/2020-02-07-21-13/i9-13642478/356x135-r/i.gif" alt="" border="0"/></a>
</div>
</div>
</div>
</div>
<!-- Intro end -->
display: flex;
align-items: center;
.nav__link
свойство display: inline-block;