fork(3) download
  1. # your code goes here
  2. matriz = [[1,2,3],[4,5,6,7],[1,2,3,4,5,6]]
  3. gen = (len(x) for x in matriz)
  4. print(type(gen))
  5. print(max(gen))
Success #stdin #stdout 0.01s 9992KB
stdin
Standard input is empty
stdout
<class 'generator'>
6