for item1 in range(10): for item2 in range(item1): print(item1, item2)