Прочитал статьюСовершенный цикл for и решил себе напомнить, что в питоне есть способ писать вложенные циклы компактно:
fromitertoolsimportproductfora,b,cinproduct(range(3),range(4),range(5)):print(a,b,c)
В классической записи это выглядело бы так:
forainrange(3):forbinrange(4):forcinrange(5):print(a,b,c)
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse
Read next

DEV.to API를 통한 자동 포스팅 테스트
dunder Kim (Hyeong) -

Snyk Helps Secure the Golang Bento Project
SnykSec -

Exploring the Creative Commons Attribution 4.0 License
Rachel Duncan -

Unveiling Creative Commons Share-Alike 4.0: A Deep Dive into Open Collaboration
Bob Cars(on) -