SyntaxFix
Write A Post
Hire A Developer
Questions
I was able to do this
>>> [x if x % 2 != 0 else x * 100 for x in range(1,10)] [1, 200, 3, 400, 5, 600, 7, 800, 9] >>>