use listcomp

This commit is contained in:
a 2020-12-09 02:21:04 -06:00
parent 30049c7d4b
commit 6401ca8324

View file

@ -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: