Popular Tags:

Learning Python – Lesson 5: More on Numbers and Math

July 9, 2019 at 1:01 am

Python Programming

It’s time to dig deeper into our work with numbers (including math) and strings.

What is Your Type?

First of all, it might be handy (especially as you learning), to have Python report the type of a variable or a literal value. For example:

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> type(199.9)
<class 'float'>
>>> type("Howdy!")
<class 'str'>
>>> type(10043)
<class 'int'>
>>> a = "This is cool!"
>>> type(a)
<class 'str'>

More on Division

Division in Python comes in two variations:

/ carries out floating point division

// caries out integer (truncating) division

For example:

>>> 15 / 4
>>> 15 // 4

Math Precedence

Many of the math precedence rules would make sense to us (those that took some math in school!) For example, multiplication wins over addition. But fortunately, Python supports the use of ( ) to indicate precedence. This keeps us from having to worry about default behaviors. Here is an example:

Notes from my Live Stream – New Cisco Certs 2020!

July 8, 2019 at 8:32 pm

Did you miss the Live Stream today on the new Cisco Certs coming early 2020? No problem – here is the recording. If you do not have thirty minutes to spare – no worries, my notes from the Live Stream are below:

What is staying the same?

  • The levels are still there for us – Entry, Associate, Professional, Expert, Architect
  • The tracks are still there for us – Collaboration, Security, Data Center, Enterprise (R&S), Service Provider, etc.

What is changing?

CCSK Incident Response Practice Exam Questions

July 1, 2019 at 2:03 pm

CCSK Practice Exams

Incident response (IR) is the well-coordinated effort to rapidly respond to security incidents in the most efficient, cost-effective manner. The goal of incident response is to:

  • Quickly identify an attack
  • Minimize its effects
  • Contain the damage
  • Identify and remediate the root cause of the incident
  • Reduce the risk of future incidents

Here is a quiz to challenge you!

CCSK Incident Response

Congratulations - you have completed CCSK Incident Response. You scored %%SCORE%% out of %%TOTAL%%. Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Shaded items are complete.

Python Variables