Chapter 3
Introduction to Python
This chapter covers the following topics:
Getting Started with Python: This section covers what you need to
know when using Python on your local machine.
Understanding Python Syntax: This section describes the basic
Python syntax and command structure.
Data Types and Variables: This section describes the various types
of data you need to interact with when coding.
Input and Output: This section describes how to get input from a
user and print out results to the terminal.
Flow Control with Conditionals and Loops: This section
discusses adding logic to your code with conditionals and loops.
Python is an easy language that anyone can learn
quickly. It has become the de facto language for
custom infrastructure automation. Thanks to its
English-like command structure, readability, and
simple programming syntax, you will find that you can
accomplish your goals more quickly with Python than
with languages such as C or Java. While you are not
expected to be an expert in Python for the 200-901
DevNet Associate DEVASC exam, you do need to be
fluent enough to understand what is going on in a
sample of Python code. You also need to be able to
construct Python code by using samples from DevNet
and GitHub to interact with Cisco products. While the
next few chapters are not intended to replace a deep
dive into Python programming, they serve as a starting
point for success on the exam.
“DO I KNOW THIS ALREADY?” QUIZ