how to find the longest word in a string in Python

how to find the longest word in a string
in Python
Home
Ask me anything
Mobile
RSS
pandoricweb
Text
how to find the longest word in a string in Python
>>>
words
=
'how to find the longest word in a string in Python'
>>>
max
(words.split(),
key=
len
)
'longest'
Tags: python
string
August 19, 2011
Posted by pandoricweb
1
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
∞ Short URL
© pandoricweb . All Rights Reserved.
Powered by Tumblr . Lightweight Theme by Artur Kim
2
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
A small C program to print the biggest
prime number
Home
Ask me anything
Mobile
RSS
pandoricweb
Text
A small C program to print the biggest prime number
from http://bellard.org/mersenne.html
int
m=
167772161
,N=
1
,t[
1
>
words
=
'how to find the longest word in a string in Python'
>>>
3
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
max
(words.split(),
key=
len
)
'longest'
Tags: python
string
August 19, 2011
Text
Content is Queen: a generative video painting
4
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
Content is Queen from Sergio Albiac on Vimeo .
Tags: generative
video
processing.org
August 19, 2011
Photo
5
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
sojamo :
series of generative potraits
by Matthias Dörfelt, mokaschitta . it is yet a veryfirst test render of a series of
generative potraits Matthias is currently working on. The concept stays a secret for
now.� rendered in openGL and GLSL.
via flickr
Tags: visuals
3d
people:matthiasDoerfelt
glsl
abstract
texture
geo:germany:hamburg
6
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
August 19, 2011
3 notes
Text
Endless list of lists in python
>>>
a=[]
>>>
a.append(a)
>>>
a
[[...]]
>>>
a[
0
]
is
a
True
>>>
reduce
(
zip
7
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
,a)
[[...]]
>>>
reduce
(
zip
,a)
is
a
True
Tags: list
infinite
python
math
endless
August 18, 2011
1 note
Photo
8
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
sergioalbiac :
Unreleased thoughts , by Sergio Albiac
Generative portrait
Tags: processing.org
processing
portrait
Black and White
generative
art
drawing
August 18, 2011
167 notes
Text
9
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
lists in haskell and python
Python:
>>>
[(x,
y)
for
x
in
range
(
4
)
if
x
%
2
==
1
for
y
in
10
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
range
(
4
)]
[(
1
,
0
),
(
1
,
1
),
(
1
,
2
),
(
1
,
11
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
3
),
(
3
,
0
),
(
3
,
1
),
(
3
,
2
),
(
3
,
3
12
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml
)]
Haskell:
Hugs
[(x,y)
x
>
|
13
Created with FeedToBook.com - Original source: www.feedtobook.com/pandoricweb.tumblr.com.xml