text = 'I like python programming'

txt = text.split(' ')

average_length=(len(txt[0])+len(txt[1])+len(txt[2])+len(txt[3]))/4

print('average length of words :', average_length)


"""

text = 'I like python programming'
text2 = text.split()
total_length = len(text2[0])+len(text2[1])+len(text2[2])+len(text2[3])
average_length = total_length / 4
print('average length of words :', average_length)


"""
