def find_possible_combinations(score): for i in range(1, len(jumps)): for j in combinations(jumps.keys(), i): if sum([jumps[v] for v in j]) == score: yield lcm(*j)
from Utilities.gcd import lcm if __name__ == '__main__': print lcm(*range(1, 21))
from Utilities.gcd import lcm if __name__ == '__main__': print lcm(*range(1,21))
from Utilities.gcd import lcm if __name__ == '__main__': print(lcm(*list(range(1, 21))))