は、文字列を組み合わせるとPythonは文字列を組み合わせると
のは、私は2つのリストを持っている、と私は2番目のリストのすべての要素に続く最初のリストの各要素を印刷したいとしましょう、複数回の印刷を複数回印刷します。楽しみのために、 "and"のような2つの要素の間に単語を追加することはできますか?
例:
firstList = (“cats”, “hats”, “rats”)
secondList = (“dogs”, “frogs”, “logs”)
私が欲しいもの:私はあなたが何を意味するか理解していれば
cats and dogs
cats and frogs
cats and logs
hats and dogs
hats and frogs
hats and logs
rats and dogs
etc...
これを行うにはどうしましたか? [format](https://docs.python.org/2/library/stdtypes.html#str.format)の単純なforループでさえ、良いスタートになります – JGreenwell