7 Syntax Patterns to Boost Your Hackerrank Python Coding …
https://towardsdatascience.com/7-syntax-patterns-to-boost-your-hackerrank-python-coding-challenges-4be00a2a6a98
WEBNov 8, 2021 · 1. Getting a line of n numbers into a list: list(map(int, input().strip().split())) 2. Getting two integers: n, m = input(), input() 3. Getting a line of strings into a list: list(input().strip().split()) 4. Getting a NumPy array with n rows as int: a = np.array(input().strip().split(), int) for _ in range(n) ] (Nested) List Comprehension.
DA: 36 PA: 94 MOZ Rank: 49