9 of 100 menu

Python Taskbook Level 1.9

Given a line:

'abcdef'

Get the last three characters of this string:

'def'

Given a dictionary with numbers:

{ 'a': 1, 'b': 2, 'c': 3, 'd': 4, }

Magnify each number in the dictionary by 2 times:

{ 'a': 2, 'b': 4, 'c': 6, 'd': 8, }
enru