Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
V = [[2, 6], [3, 10], [15], [23], [1, 8, 15, 22, 29], [14]]
def Mvisit(l):
c = 0 #Counter
hv = None # the visits
for i in V:
if len(i) > c: # compares numbers of visits
c = len(i)
hv = i
print("Highest number of visits are :", hv)
Mvisit(V)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment