Counting the number of Python lists

Asked 2 years ago, Updated 2 years ago, 20 views

For example, a=[1,2,3,3,4,] b=[2.4..5.6] When given in this way How do I write a function that outputs the total number of lists?

If you're given only two of a and b, you can print out two!

python

2022-09-20 19:37

1 Answers

 a=[1,2,3,3,4] 
# # b=[2.4..5.6] ?????????????????????????????????
print(len(a))


2022-09-20 19:37

If you have any answers or tips


© 2025 OneMinuteCode. All rights reserved.