MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / takeInput

Function takeInput

Python/codingninja_array_problem.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17# Taking Input Using Fast I/O
18def takeInput():
19 print("Enter elements of list .")
20 n = int(sys.stdin.readline().rstrip())
21 if n == 0:
22 return list(), 0
23 arr = list(map(int, sys.stdin.readline().rstrip().split(" ")))
24 return arr, n
25
26# main
27print("How many list do you want to check? ")

Callers 1

Calls 1

printFunction · 0.50

Tested by

no test coverage detected