Python Taskbook Level 2.9
Use a loop to fill the list with even numbers from 1
to 100
.
Given a list of numbers:
[1, 2, 3, 4, 5]
Print the elements of this list to the console in reverse order.
Two lines are given:
txt1 = 'abcde'
txt2 = '12345'
Make a dictionary out of these lines so that the characters in the first line become the keys and the characters in the second line become the values:
{
'a': 1,
'b': 2,
'c': 3,
'd': 4,
'e': 5,
}