l_list = [0 if x % 3 == 0 else x * 2 for x in range(1, 20)]
print(l_list)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
l_list = [0 if x % 3 == 0 else x * 2 for x in range(1, 20)]
print(l_list)