Python uzdevumu krājuma 8.1. līmenis

Задание 1

Dots kāds URL:

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

Iegūstiet no tā domēna vārdu:

python'test.com';
Задание 2

Dots saraksts:

python[
  [1, 2, 3],
  [1, 2],
  [1, 2, 3, 4, 5],
  [1],
  [1, 2, 3, 4],
]

Kārtojiet saraksta elementus pēc apakšsarakstā esošo elementu skaita augošā secībā.

Задание 3

Dots saraksts:

python[
  [2, 4, 5],
  [1, 2, 3],
  [0, 1, 1],
  [5, 7, 1],
]

Kārtojiet saraksta elementus pēc apakšsaraksta elementu summas augošā secībā.

Задание 4

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

x
xx
xxx
xxxx
xxxxx