a = [1] * 3 + [2] * 3 + ['A'] * 3 + ['B'] * 3
print(a)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a = [1] * 3 + [2] * 3 + ['A'] * 3 + ['B'] * 3
print(a)