Question: if n < len(array): print(array[0:n]) else: print(Index out of range)
if n < len(array): print(array[0:n]) else: print("Index out of range")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
