Python

How to Define a Function with Default Arguments in Python?

Default arguments allow you to define a function with optional arguments in Python. When calling the function, you can set the arguments but you don’t have to. Using default arguments is a great Pythonic way to create reusable and concise code. Here’s an example: In the example, we specify a default value for function parameters. …

How to Define a Function with Default Arguments in Python? Read More »

NumPy Datetime: How to Work with Dates and Times in Python?

In this article, we’ll be learning about something that is literally everywhere. Whatever corner you turn, whatever street you run down, you can’t get away from it. It is as ubiquitous as the physical space around us. Yes today, we’re talking about… TIME. More specifically, we’re talking about NumPy’s functions that represent dates and times. …

NumPy Datetime: How to Work with Dates and Times in Python? Read More »

How Not to Waste Time and Money? (And Crush it in Business)

Today, I got the following message from one of my freelancer webinar course members: “I am in the same situation as you were. I am in a PhD program and have a family. I would love to get started with freelance programming. You have to understand what you offer [The Python Freelancer Course] is very …

How Not to Waste Time and Money? (And Crush it in Business) Read More »

Artificial Intelligence, Machine Learning, Deep Learning, and Data Science — What’s the Difference?

Answer: Deep learning is a subarea of machine learning which is a subarea of artificial intelligence. Data science is an interdisciplinary area that combines all of those with math and programming skills to extract useful insights from data. “I’m trying to understand how the area of skills are related to each other, and one is …

Artificial Intelligence, Machine Learning, Deep Learning, and Data Science — What’s the Difference? Read More »

How to Boost Your Intelligence? 10 Tips From Science

This book chapter from “Brain Games Python” provides you with tips to help you become a more intelligent human being. Ignore them at your own risk! 1. Sleep More Sleep deprivation reduces your intelligence [Killgore 2008]. Say, you decide to sleep only six instead of eight hours from now on. Congratulations, you’ve gained 8% more …

How to Boost Your Intelligence? 10 Tips From Science Read More »

How Fake News are Holding You Back in Python

Experts in their field read more books! The rise of “Fake News” shows that the quality of information is a valuable asset of the information society. With poor quality of information comes poor knowledge and expertise. Let’s order the content types based on the quality of information they tend to generate (from low quality to …

How Fake News are Holding You Back in Python Read More »

How to Use Gmail to Send an Email with Python’s Yagmail library?

Here’s how you can quickly send an email with Gmail using the Yagmail library: Install Yagmail by running the command pip install yagmail in your shell. Install Keyring by running the command pip install keyring in your shell. Execute the following code snippet (specify your own username, password, and email content): Voilà. You can consult …

How to Use Gmail to Send an Email with Python’s Yagmail library? Read More »