18th Mar 2021, 5:31 AM
vladisla_k1m
vladisla_k1m - avatar
6 Answers
+ 1
Hi! "how it works" what? Your question is not clear... šŸ˜”
18th Mar 2021, 6:31 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
txt = input() f=(txt.split()) mnr = 0 max = len(f[mnr]) for i in range(len(f)): if len(f[i]) > max: max = len(f[i]) mnr = i print(f[mnr])
18th Mar 2021, 6:39 AM
vladisla_k1m
vladisla_k1m - avatar
0
Show your attempt first
18th Mar 2021, 6:30 AM
Atul [Inactive]
0
txt = input().split() index = -1 max = 0 for i, word in enumerate(txt): if len(word) > max: index = i max = len(word) print(txt[index])
18th Mar 2021, 6:54 AM
visph
visph - avatar
- 1
This code is working fine
18th Mar 2021, 6:44 AM
Atul [Inactive]
- 1
i mean HOW it works, because i am fined this code in google
18th Mar 2021, 6:51 AM
vladisla_k1m
vladisla_k1m - avatar