Kiwango cha 8.2 cha Kitabu cha Kazi cha Python
Задание 1
Kipewa URL fulani:
pythonurl = 'http://test.com/dir1/dir2/dir3/page.html';
Pata jina la ukurasa kutoka humo:
python'page.html';
Задание 2
Kipewa orodha, ambayo orodha ndogo zake zina tarakimu:
python[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
Changanya vipengele vya orodha hii kuwa nambari:
python[123, 456, 789]
Задание 3
Andika kwenye skrini piramidi ifuatayo:
xx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx