73 of 100 menu

Python Taskbook Level 8.3

Given some URL:

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

Get the protocol from it:

'http';

The following list is given:

<?php lst = [1, 2, 3, 4, 5, 6]; ?>

The number is also given:

<?php num = 3; ?>

Add as many empty lines to the given list as necessary so that the length of the list becomes equal to the square of the number in the variable.

Display the following pyramid on the screen:

111
222
333
444
555
666
777
888
999
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline