use listcomp
This commit is contained in:
parent
30049c7d4b
commit
6401ca8324
1 changed files with 1 additions and 1 deletions
2
09/09.py
2
09/09.py
|
@ -1,6 +1,6 @@
|
|||
def read_file():
|
||||
with open("input.txt","r") as f:
|
||||
return list(map(int, f.read().split('\n')))
|
||||
return [int(x) for x in f.read().split('\n')))]
|
||||
|
||||
def has_summing_pair(target, numbers):
|
||||
for number in numbers:
|
||||
|
|
Loading…
Reference in a new issue