Question: def find _ word ( strings ) : str 1 = strings [ 0 ] for s in strings: if len ( s ) >

def find_word(strings):
str1= strings [0]
for s in strings:
if len(s)>len(str1) :
str1=s
return str1
x=["hello", "world", "python", "is", "awesome"]
print(find_word (x))
 def find_word(strings): str1= strings [0] for s in strings: if len(s)>len(str1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!