AndreiL
Welcome to AndreiL.
Enjoy your time.
Please log in.

Counting letters in sentences by word - Python

Go down

Counting letters in sentences by word - Python

Post by Lucaci Andrei on Mon Jun 25, 2012 10:36 pm

This is a quick program I did for this topic: Click here.

1
2
3
def lens():
print([len(i) for i in (raw_input("Insert sentence: ")).split(' ')])
lens()

avatar
Lucaci Andrei
"Tata Lor"


Number of messages : 222
Points : 2266743
Reputation : 1007
Registration date : 2008-08-15
Age : 26
Location : Cluj-Napoca

View user profile http://www.andreil.wgz.ro

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum