MCPcopy Create free account
hub / github.com/geekcomputers/Python / input_list

Function input_list

insertion_sort.py:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def input_list():
7 # taking length and then values of list as input from user
8 n = int(input("Enter number of elements in the list: ")) # taking value from user
9 for i in range(n):
10 temp = int(input("Enter element " + str(i + 1) + ": "))
11 list.append(temp)
12
13
14def insertion_sort(list, n):

Callers 1

insertion_sort.pyFile · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected