Slice by Position in Python

If you want to create a slice from a position, only the starting index is specified before the colon. Let's print the characters of the string starting at index 2:

pythontxt = 'abcde'
res = txt[2:]

print(res) # 'cde'
Задание 1

Given a string:

pythontxt = '12345'

Get a slice of all its characters except the first one:

python'2345'
Задание 2

Given a list:

pythonlst = ['ab', 1, 'cd', 2, 'ef', 3, 4]

Get the following slice of its elements:

python[2, 'ef', 3, 4]