Python Namespaces Made Simple

Namespace are everywhere in Python whether you realize it or not. If you don’t know about Python namespaces, you’ll eventually introduce nasty bugs into your Python code. Let’s fix this once and for all! 🙂 As you read over the article, you can watch my explainer video: Why Namespaces? In many classes with 30+ students, … Read more

[Google Interview] Detect Capital

[toc] Company Tag: Google Problem Formulation We define the usage of capitals in a word to be right when one of the following cases holds: Rule 1: All letters in this word are capitals, like “USA”. Rule 2: All letters in this word are not capitals, like “welcome”. Rule 3: Only the first letter in … Read more

How to Find Your Freelancing Niche on Upwork?

ChrisWhile working as a researcher in distributed systems, Dr. Christian Mayer found his love for teaching computer science students. To help students reach higher levels of Python success, he founded the programming education website Finxter.com that has taught exponential skills to millions of coders worldwide. He’s the author of the best-selling programming books Python One-Liners … Read more

[Google Interview] Shuffle the Array

[toc] Company Tags: Google, Adobe, Apple, Bloomberg, Microsoft Problem Description Given the array nums consisting of 2n elements in the form [x1, x2,…,xn, y1, y2,…, yn]. Return the array in the form [x1, y1, x2, y2,…, xn, yn]. Constraints: 1 <= n <= 500 nums.length == 2n 1 <= nums[i] <= 10^3 Examples Let’s have … Read more

How to Select a Drop-Down Menu Value with Python Selenium

One of the finest open-source browser automation tools recognized in today’s world is selenium and the “Select” class of selenium WebDriver enables us to handle the dropdown menu smoothly. Today, we will try to figure out all the intricacies of the “Select” class practically. Purpose of the Select Class The “Select” class in selenium allows … Read more

Python Read Binary File

During your career as a Pythonista, you will most likely find yourself required to work with binary data. See the examples outlined below to efficiently read/write to a Binary file. Preparation Before any data manipulation can occur, one (1) new library will require installation. The NumPy library supports multi-dimensional arrays and matrices in addition to … Read more

How to Use Pytest Fixtures

In this article, you’ll deep dive into a powerful testing feature in Python called Pytest Fixtures. Feel free to dive into our background articles on Pytest in case you need a quick refresher (with video)! Pytest – A Complete Overview Pytest – How to Run Tests Efficiently You can watch this tutorial in video format … Read more