Open main menu

CDOT Wiki β

Changes

OPS435 Python Extra Advanced String formatting

164 bytes added, 14:22, 1 September 2017
no edit summary
= OBJECTIVES =
 
This is not a necessary learning requirement for the course, this extra lab provides information on more powerful string formatting in Python 3.
 
= INVESTIGATION 1: Advanced String Formatting =
 == PART 1 - String Formatting Basic Fundamentals==
:In Python scripting, using plus signs and commas for string concatenation is very limited and can become messy when when used at length with many values and/or calculations. This section will cover the '''format()''' function that can be used with every type of string. This function allows the user of Python to create well formatted code, to align text, and to convert values efficiently and cleanly. While this section uses lists and dictionaries, they contain strings which can be accessed and displayed in a formatted manner.
198
edits