Learn Python Easy Way
Friday, October 30, 2015
using strip()
.strip() removes leading and trailing spaces.
a = " name here "
a.strip() => "name here"
a = " name there ".strip() => a = "name there"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment