str="I am learning am python programmin Programmin"

a=str.split()
#print(a)

maxlen=0
Longestword=""

for i in a[:]:
    
    if len(i) > maxlen:
       Longestword1=len(i)
       Longestword=i

print("Longest word is: ",Longestword,"and its length is: ",Longestword1)
       
       
       
       
   
       

