SyntaxFix
Write A Post
Hire A Developer
Questions
>>> L = range (11) >>> [ x if x%2 == 1 else None for x in L ] [None, 1, None, 3, None, 5, None, 7, None, 9, None]