Created
April 25, 2020 11:26
-
-
Save computer-tutor/03e5abd004a6569349623dc80a8ad5bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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