use listcomp
This commit is contained in:
parent
30049c7d4b
commit
6401ca8324
2
09/09.py
2
09/09.py
|
@ -1,6 +1,6 @@
|
||||||
def read_file():
|
def read_file():
|
||||||
with open("input.txt","r") as f:
|
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):
|
def has_summing_pair(target, numbers):
|
||||||
for number in numbers:
|
for number in numbers:
|
||||||
|
|
Loading…
Reference in a new issue