Python Program to Find Largest Word in a String | Python Course for Beginners

preview_player
Показать описание
In this video, I have discussed python program to find largest word in a string
#python #parnikatutorials #strings

Social media Links:
To get the regular updates:
Playlists:
Virtual Coffee with Jagadeesh:
Digital Logic Design:
Computer Organization and Architecture:
C Programming:
Data Structures:

Theory of Computation:

Compiler Design:

Computer Networks:
For GATE PYQs and much more explore:
Рекомендации по теме
Комментарии
Автор

hi
rather than mentioning fixed size(max=7) we can do like below
st="hi friends how are you"
large_word =""
for word in st.split():
if len(large_word) < len(word):
large_word = word
print(large_word)
above code works when the requirement is to find largest word in given string without any size constraint
but by using your code we can restrict the size of word(we can make what size of word to consider)
thanks

bharathreddy
join shbcf.ru