ignore ifs in comprehensions when determine if the file is runnable

This commit is contained in:
aleksei.kniazev
2019-01-23 14:27:51 +03:00
committed by Aleksei Kniazev
parent 0e39b09476
commit 9034bb6261
3 changed files with 17 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
if __name__ == "__main__":
result = [i for i in range(10) if i != 0]
result = [i for i in range(10) if i != 0]