Python Taskbook Level 3.5
Given a text with words. Write down in a list all the words that begin with the letter 'a'
.
Given a list of numbers, check that all elements of this list are positive numbers.
Two lists are given:
lst1 = [1, 2, 3, 4, 5]
lst2 = [4, 5, 6, 7, 8]
Get a list of their common elements:
[4, 5]
Given a variable with a number:
num = 5;
Make a string containing as many zeros as specified in the variable. In our case, we get the following string:
'00000'