DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to format a file in python
f = open('file.txt', 'r') for x in f: x = x.lstrip() x = x.rstrip() x = x.title() print x
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#format
#file
#python
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit