Skip to content

Commit f6add29

Browse files
Владислав ТельманВладислав Тельман
authored andcommitted
initial commit
0 parents  commit f6add29

31 files changed

Lines changed: 40816 additions & 0 deletions

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/toolchains.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/Практика_Тельманов.iml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Exercieses.html

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Практика</title>
6+
<link rel="shortcut icon" type="image/ico" href="python-logo.png"/>
7+
<link rel="stylesheet" href="_static/classic.css" type="text/css"/>
8+
<link rel="stylesheet" href="_static/pygments.css" type="text/css"/>
9+
<style>
10+
* {
11+
box-sizing: border-box;
12+
}
13+
.left-col {
14+
position: absolute;
15+
top: 0;
16+
left: 0;
17+
width: 500px;
18+
}
19+
20+
body {
21+
height: 100vh;
22+
display: flex;
23+
}
24+
25+
.menu {
26+
position: absolute;
27+
top: 100px;
28+
width: 800px;
29+
margin-left: 400px;
30+
background: #d8d8d8;
31+
height: 1000px;
32+
}
33+
34+
.menu-item {
35+
top: 100px;
36+
width: 100%;
37+
height: 50px;
38+
line-height: 50px;
39+
text-align: center;
40+
cursor: pointer;
41+
border-bottom: 1px solid #ccc;
42+
}
43+
44+
.content {
45+
max-height: 0;
46+
overflow: hidden;
47+
transition: max-height 0.3s ease-in-out;
48+
}
49+
50+
.content.open {
51+
max-height: 700px;
52+
}
53+
54+
55+
</style>
56+
</head>
57+
<body style="background: #ccc;">
58+
59+
60+
<div style="float: left;position: absolute;top: 0px; width: 250px;height: 1530px; padding: 25px;background: #C8A98F;color: #8B4513;margin: 0px;">
61+
<p><A href="Главная страница.html" style="color: #8B4513;font-size: 20px;text-decoration: none;" target="_blank">Главная
62+
страница</A></p>
63+
64+
<p><A href="Книга.html" style="color: #8B4513;text-decoration: none;" target="_blank">Теория</A></p>
65+
66+
<p><A href="Обучающие видео.html" style="color: #8B4513;text-decoration: none;" target="_blank">Обучающие видео</A>
67+
</p>
68+
69+
<p><A href="Exercieses.html" style="color: #8B4513;text-decoration: none;" target="_blank">Практика</A></p>
70+
</div>
71+
72+
<div style="width: 1000px; height: 100px; position: relative; top: 0px; text-align: center; display: inline; margin-left: 320px; background: #4ddcef45;">
73+
<p>Раздел "Практика" предназначен только той категории обучающихся, кто ознакомился с разделами: "Теория",
74+
"Обучающие видео".</p>
75+
</div>
76+
77+
<div class="menu">
78+
<div class="menu-item" id="item1">Задача №1. Произведение</div>
79+
<div class="content" id="content1">
80+
<p>Напишите функцию, которая принимает два значения и возвращает их произведение (a*b)</p>
81+
<iframe src="https://trinket.io/embed/python/f5bb24bf93" width="100%" height="356" frameborder="0"
82+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
83+
</div>
84+
<div class="menu-item" id="item2">Задача №1. Решение от автора</div>
85+
<div class="content" id="content2">
86+
<iframe src="https://trinket.io/embed/python/774dfea242" width="100%" height="356" frameborder="0"
87+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
88+
</div>
89+
<div class="menu-item" id="item3">Задача №2. Наименьшее значение в списке</div>
90+
<div class="content" id="content3">
91+
<p>В этой задаче вам необходимо написать функцию, которая находит наименьшее значение в списке. </p>
92+
<p>Для списка [34, 15, 88, 2] ваша функция должна вернуть 2, а для списка [34, -345, -1, 100]: -345</p>
93+
<p>Можете предположить, что ваша функция работает только с непустыми списками.</p>
94+
<iframe src="https://trinket.io/embed/python/f5bb24bf93" width="100%" height="356" frameborder="0"
95+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
96+
</div>
97+
<div class="menu-item" id="item4">Задача №2. Решение от автора</div>
98+
<div class="content" id="content4">
99+
<iframe src="https://trinket.io/embed/python/6d112dc3d0" width="100%" height="356" frameborder="0"
100+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
101+
</div>
102+
<div class="menu-item" id="item5">Задача №3. Четное/Нечетное</div>
103+
<div class="content" id="content5">
104+
<p>Создайте функцию, которая принимает целое число в качестве аргумента и возвращает «Четное» для четных чисел
105+
или «Нечетное» для нечетных чисел.</p>
106+
<iframe src="https://trinket.io/embed/python/f5bb24bf93" width="100%" height="356" frameborder="0"
107+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
108+
</div>
109+
<div class="menu-item" id="item6">Задача №3. Решение от автора</div>
110+
<div class="content" id="content6">
111+
<iframe src="https://trinket.io/embed/python/6b77a684b8" width="100%" height="356" frameborder="0"
112+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
113+
</div>
114+
<div class="menu-item" id="item7">Задача №4. Супер-легко</div>
115+
<div class="content" id="content7">
116+
<p>Создайте функцию, которая возвращает значение, умноженное на 50 и увеличенное на 6. Если введенное значение
117+
является строкой, оно должно возвращать «Error».</p>
118+
<iframe src="https://trinket.io/embed/python/f5bb24bf93" width="100%" height="356" frameborder="0"
119+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
120+
<p>Ответ: </p>
121+
</div>
122+
<div class="menu-item" id="item8">Задача №4. Решение от автора</div>
123+
<div class="content" id="content8">
124+
<iframe src="https://trinket.io/embed/python/6b77a684b8" width="100%" height="356" frameborder="0"
125+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
126+
</div>
127+
<div class="menu-item" id="item9">Задача №5.</div>
128+
<div class="content" id="content9">
129+
<p>Эту задачу вам предстоит решить самостоятельно.</p>
130+
<p>Напишите функцию, которая принимает целое число в качестве входных данных и возвращает количество битов,
131+
равных единице в двоичном представлении этого числа</p>
132+
<p>Представьте, что ввод функции всегда неотрицательный</p>
133+
<p>Пример: двоичное представление числа 1234 равно 10011010010, поэтому в этом случае функция должна вернуть
134+
5</p>
135+
<iframe src="https://trinket.io/embed/python/f5bb24bf93" width="100%" height="356" frameborder="0"
136+
marginwidth="0" marginheight="0" allowfullscreen></iframe>
137+
</div>
138+
</div>
139+
140+
<script>
141+
const items = document.querySelectorAll('.menu-item');
142+
const contents = document.querySelectorAll('.content');
143+
144+
for (let i = 0; i < items.length; i++) {
145+
items[i].addEventListener('click', () => {
146+
contents[i].classList.toggle('open');
147+
148+
for (let j = 0; j < contents.length; j++) {
149+
if (j != i && contents[j].classList.contains('open')) {
150+
contents[j].classList.remove('open');
151+
}
152+
}
153+
});
154+
}
155+
156+
</script>
157+
158+
</body>
159+
</html>

Gvido.jpg

28.1 KB
Loading

0 commit comments

Comments
 (0)