Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def len_list(*args):
- return len(args)
- list1 = [1, 2, 3]
- list2 = [4, 5]
- list3 = [6, 7, 8, 9]
- matrix = [[1, 2, 3], [4, 5], [6, 7, 8, 9]]
- matrix1 = [[1, 2, 3], [4, 5], [6, 7, 8, 9]]
- print(len_list(list1))
- print(len_list(*list1))
- print(len_list(*list1, *list2, *list3))
- print(len_list(*matrix))
- print(len_list(*matrix, *matrix1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement