Tuesday 13 July 2021

Top 5000 python programs examples with solutions - Part 5

 Program 51:

Write a program to generate integer coordinate (2,2) to (6,6) using list comprehension?

lst=[(x,y) for x in range(2,7) for y in range(2,7)]
print(lst)

Read more »

Labels: