Source code for kyu_8.remove_first_and_last_character.remove_char
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
[docs]def remove_char(s):
"""
A function that removes the first and
last characters of a string.
You're given one parameter, the original string.
You don't have to worry with strings
with less than two characters.
:param s:
:return:
"""
return s[1:-1]