WGU D522 Python IT Automation
Study Guide | Core Concepts &
Programming Fundamentals
Page 1 of 78 WGU D522 Python IT Automation
WGUStudy
D522Guide
Python_ IT
Core
Automation
ConceptsStudy
& Programming
Guide _ Core
Fundamentals.pdf
Concepts & Programming Fundamentals
,Page 2 of 78 Core Concepts for Python IT Automation (WGU D522).pdf 2 of 78
Indentation in Python
Python uses indentation (spaces or tabs at the start of a line) to define code blocks instead
of braces. Consistent indentation is required for structures like if statements, loops, and
function definitions.
Variable in Python
A variable is a named reference to a value in memory. You create one by simply assigning a
value to a name using =.
Basic data types in Python
Important built-in data types include Integer (int), Floating-point (float), String (str), Boolean
(bool), and NoneType.
Page 2 of 78 Core Concepts for Python IT Automation (WGU D522).pdf Core Concepts for Python IT Automation (WGU D522)
,Page 3 of 78 Core Concepts for Python IT Automation (WGU D522).pdf 3 of 78
Integer in Python
Whole numbers (e.g. 42, -5).
Floating-point in Python
Decimal numbers (e.g. 3.14, 0.5).
String in Python
Text sequences in quotes (e.g. 'Hello').
Page 3 of 78 Core Concepts for Python IT Automation (WGU D522).pdf Core Concepts for Python IT Automation (WGU D522)
, Page 4 of 78 Core Concepts for Python IT Automation (WGU D522).pdf 4 of 78
Boolean in Python
Truth values True or False.
NoneType in Python
The special value None indicating 'no value.'
Type checking in Python
You can use the type() function to check an object's type. For example, type(42) returns
<class 'int'>.
Type conversion in Python
Use Python's built-in conversion functions like int(), float(), str(), and bool().
Page 4 of 78 Core Concepts for Python IT Automation (WGU D522).pdf Core Concepts for Python IT Automation (WGU D522)