Write a program to remove characters from a string starting from zero up to n and return a new string.
belongs to collection: Python Basic Exercises for Beginners
All Answers
total answers (1)
belongs to collection: Python Basic Exercises for Beginners
total answers (1)
Hint:
Use string slicing to get the substring. For example, to remove the first four characters and the remeaning use
s[4:]
.Solution:
exaplanation in video:
need an explanation for this answer? contact us directly to get an explanation for this answer