print 1 word of string in python
From thelinuxwiki
Revision as of 04:24, 29 October 2016 by
Nighthawk
(
Talk
|
contribs
)
(diff) ← Older revision |
Latest revision
(
diff
) |
Newer revision →
(
diff
)
Jump to:
navigation
,
search
mystring = 'cheetahs run real fast' print mystring.split()[2]
real
the [index] starts at zero
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Recent changes
Random page
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information