0

How to find out the length of individual elements of a list.

If I give u a input via input().split() Then how do I find out the no. Of characters in individual elements

18th Oct 2020, 1:38 PM
Amit Kumar
Amit Kumar - avatar
2 Antworten
+ 7
Nasif Rahman, code has to be like: #var a = input().split() # 'var' is not valid expression a = input().split() for b in a: print(len(b))
18th Oct 2020, 5:01 PM
Lothar
Lothar - avatar
0
Okk I will try
18th Oct 2020, 1:41 PM
Amit Kumar
Amit Kumar - avatar