Līmenis 8.2 Python uzdevumu krājums

Задание 1

Dots kāds URL:

pythonurl = 'http://test.com/dir1/dir2/dir3/page.html';

Iegūstiet no tā lapas nosaukumu:

python'page.html';
Задание 2

Dots saraksts, kura apakšsaraksti satur ciparus:

python[
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
]

Apvienojiet šī saraksta elementus skaitļos:

python[123, 456, 789]
Задание 3

Izvadiet ekrānā šādu piramīdu:

xx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx