Python Taskbook Level 5.4
Ask the user to enter an integer via console. Get the factorial of the entered number.
Write a program that will generate the following string:
'-1-2-3-4-5-'
Given a string:
'1 22 333 4444 22 5555 1'
Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:
'1 22 333 22 1'