РЕШИТЬ 2 ЗАДАЧИ ПО МАССИВАМ НАДО! ТОЛЬКО ПИТОН!!!
1)- Заполните массив десятью первыми членами арифметической прогрессии с известным первым членом прогрессии а и ее разностью q.
2)- Дан массив. Все его элементы:
1) увеличить в 2 раза
2) разделить на первый элемент
Ответы на вопрос:
Объяснение:
1.
d=int(input())
a1=int(input())
arr=[i for i in range(a1,a1+d*9,d)]
2.
arr=[3,4,5,6,7,8,9]
for i in range(len(arr)):
arr[i]*=2
arr[i]/=arr[0]
print(arr)
Название файла myhtml.html
<html>
<head>
<title>Вариант 1</title>
</head>
<body>
<h2 style="text-align: center">"Тестовое задание"</h2>
<hr>
<hr>
<hr>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
</ul>
<table border="1">
<caption>Таблица</caption>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
</table>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<a href="Тут полное путь к этому файлу + /myhtml.html">Скачать</a>
<a href="ссылка на страницу" target="_blank"><img src="https:// vuzopedia.ru/storage/app/uploads/public/602/667/061/602667061f1a3416415373.jpg" style="width:100%"></a>
</body>
</html>
Популярно: Информатика
-
захро200702.05.2021 16:26
-
karinasarova9504.03.2021 18:56
-
gulindanil0503.11.2022 07:26
-
mrpixkaGogar29.04.2020 13:38
-
asadhfdgj10.06.2020 05:52
-
Никита11111664405.04.2023 09:17
-
Янрей12.06.2020 16:18
-
Lovedashuta11.02.2020 00:42
-
НастяМосква1327.09.2020 14:26
-
Мегамозг051110.02.2022 21:22