Subscribe
Tutorial search

Charming Python: Text processing in Python for beginners - Python tutorial


Along with several other popular scripting languages, Python is an excellent tool for scanning and manipulating textual data. This article summarizes Python's text processing facilities for the programmer new to Python. The article explains some general concepts of regular expressions and offers advice on when to use (or not use) regular expressions while processing text.
Category: Python > Basics - Difficulty:


More cool Python tutorials:



The “for” Loop
The “for” Loop
‘For’ loops are like ‘while’ loops, but ‘for’ loops give a better way to go through the elements in a list or repeat an argument multiple times...
Difficulty:
Lists Part 2
Lists Part 2
We begin with a list named ‘greek_letters’, with the first five Greek letters. We tell the terminal to print the third value with the command ‘greek_letters[2]’, which accesses the third value in the list...
Difficulty:
Decision-Making
Decision-Making
Learn more about control structures: If, elif, and, or, ect. commands
Difficulty:
Python String Formatting
Python String Formatting
Python supports formatting of Strings. It has potential to use high complex level formatting. In this tutorial I am using simple formatting of Python Strings.
Difficulty:
Lists Part 1
Lists Part 1
Learn about the list value. Ordinary variables hold one value. The list variable can hold multiple values.
Difficulty: