ブリブリ備忘録 おっ、python

HackerRankの問題とコメント(python3) 拙いですが...

2019-02-01から1ヶ月間の記事一覧

itertools.product()

・問題 itertools.product() This tool computes the cartesian product of input iterables. It is equivalent to nested for-loops. For example, product(A, B) returns the same as ((x,y) for x in A for y in B). Sample Code >>> from itertools impo…