DEV Community

Cover image for My Journey in Python: Week 2 with Akwannya Hub Skill Pod
El
El

Posted on

My Journey in Python: Week 2 with Akwannya Hub Skill Pod

Building momentum in the Akwannya Hub Skill Pod (Cohort 1) has been an amazing experience.. Being part of this pod is already yielding results, and working alongside my peers keeps me motivated every day.

As a networking student, taking this Python course is a huge milestone for me. Networking today is moving fast toward automation, cloud configuration, and network programming. Learning Python isn't just about passing a module; it's about building the skills I need to write scripts that can manage routers, analyze network traffic, and automate repetitive setup tasks in the future.

In Week 2, we moved into Module 2: Python Data Types, Variables, Operators, and Basic I/O Operations, focusing specifically on Section 1: The "Hello, World!" Program and the print() Function.

Here is a breakdown of what I learned, how I practiced it hands-on, my presentation experience, and my key takeaways;

  1. Special Highlight: Presenting Data Types, Variables, and Operators This week, I had the privilege of presenting to my cohort team on core Python concepts: Data Types, Variables, and Operators.

Explaining these concepts to others helped me solidify my own understanding:

• Data Types (Literals): Learning how Python distinguishes between integers, floats, strings, and booleans.
• Variables: Storing and updating values in memory so they can be reused across a program.
• Operators: Performing calculations using arithmetic operators like standard division (/), floor division (//), modulo (%), and exponentiation (**).

As a networking student, breaking down these concepts made me realize how essential they are for network automation—whether it's storing IP addresses in variables, calculating subnet offsets, or managing loop logic.

2. Function Invocation and Arguments
I learned that executing or calling a function in Python is known as function invocation.

To invoke a function like print(), we pass data into its parentheses. This data is called an argument. The function takes the argument, processes it, and displays the result on the screen.

From a networking perspective, I view print() as my first diagnostic tool, much like using ping or traceroute in a terminal to see what is happening behind the scenes.

3. Escape and Newline Characters
Python uses special characters called escape sequences to format text. An escape sequence always starts with a backslash ().

• Newline (\n): Breaks the string and moves the following text to a new line.
• Escaping Quotes (\" or \'): Prints quotation marks inside strings without breaking syntax.
• Escaping Backslashes (\): Displays a literal backslash, which is very useful when dealing with file paths or system configurations.

4. Positional vs. Keyword Arguments
One of the most practical lessons this week was understanding how arguments behave inside print().

Positional Arguments
When passing multiple arguments separated by commas, Python prints them in order and adds a default space between each item:

Keyword Arguments
Keyword arguments change the default behavior of functions:

• end="...": Replaces the default newline character at the end of a print() output.
• sep="...": Replaces the default space separator between multiple arguments.

Using sep is especially useful for networking tasks, like formatting IP addresses cleanly:

Key Takeaways & Reflection
• Presentation Boost: Presenting to my peers forced me to understand the topics deeply rather than just memorizing them.
• Attention to Detail: Forgetting an escape backslash or misspelling a keyword argument like sep causes errors. Just like configuring a router CLI, paying attention to syntax is critical.

I am grateful to Akwannya Hub, my mentors, and my cohort peers for creating such a supportive environment. I look forward to taking on Week 3.

Top comments (0)