Python Taskbook Level 1.3

Задание 1

Given a string, if there is more than one character in the string, print the second to last character of the string to the console.

Задание 2

Given two integers, check that the first number is divisible by the second without remainder.

Задание 3

Given a string:

python'abcde'

Get a list of its symbols:

python['a', 'b', 'c', 'd', 'e']
Задание 4

Given a list:

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

Get the following slice from it:

python[3, 4, 5]
Задание 5

Given a dictionary with a date:

python{
  'year' : '2025',
  'month': '12',
  'day'  : '31',
}

From the elements of this dictionary, assemble a date in the following format:

python'2025-12-31'