Challenge: Magnify a Slice
This lesson brings you a challenge to solve.
We'll cover the following
Problem statement
Write a function that takes a slice s
of integers and an integer factor
, and enlarges s
so that its new length is len(s) * factor.
Get hands-on with 1400+ tech skills courses.