Skip to content

Edward-Sakash/Collection_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Task - Swap list elements

You are given a list and two indizes. Implement a method swap that takes the list and the two indizes as arguments, swaps the values at the given indizes and returns the list.

Input:

swap_list = [23, 65, 19, 90]

Output:

> swap(swap_list, 1, 3)

[23, 90, 19, 65]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages