3. print(hello, world)
4. print("'hello world'")
9. How do if statements operate?
1. If evaluates a variable against a condition to determine whether the
condition is true.
2. If uses Boolean operators.
3. An if statement needs to end with :.
4. All of the above are correct.
10. Which statements are true about the range()
function? (Choose two.)
1. The range() function iterates by one, starting at 0, up to but not
including the number specified.
2. The range() function iterates by one, starting at 1, up to the
number specified.
3. A range() function cannot count down, only up.
4. A range() function can count up or down, based on a positive or
negative step value.
FOUNDATION TOPICS
GETTING STARTED WITH PYTHON
Those from many engineering backgrounds are looking
to integrate programming into their infrastructure.
Maybe you are a hardcore computer science major and
have been programming in multiple languages for years.
You might be an infrastructure engineer who is strong in
the ways of Cisco IOS and looking for new ways to
operate in a diverse environment. You might even be a
server expert who is familiar with Ansible or Terraform
automation and are being asked to bring that automation
knowledge to the networking team. Regardless of your
background or experience level, the DevNet certifications
are designed to help you build the competency needed to
be successful and give you a chance to prove what you
have learned. If you haven’t coded in years, or if the
language that you currently program in isn’t one that is
very popular for infrastructure automation, where do you
start? Python.