How to use 'for loop in python 2.7' in Python

Every line of 'for loop in python 2.7' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
69def test_for():
70 src = dedent("""\
71 for a in [1,2]:
72 a
74 for a1 in 1,"":
75 a1
76 """)
77 check_p(src, 1)

Related snippets