#try to avoid input function s = ("hi","hello","world","rgukt","welcome123") b,c = 0,"" for i in s: if len(i) >= b: c = i b = len(i) print(c)
Click the run button. Try to avoid input() function.