Exploring Python Programming For Young Learners: An Interactive Approach
The Python Corner
by
3M ago
In an age dominated by technology, empowering the younger generation with essential skills has never been more important. As the digital landscape evolves, proficiency in programming languages becomes a valuable asset. Among the plethora of coding languages, Python stands out as an ideal gateway for children to enter the world of coding due to its simplicity, versatility, and an engaging learning curve. Below, you will find information on the many benefits and the profound importance of Python for kids. Beyond conventional educational methods, it is also vital to explore the transformative pow ..read more
Visit website
Representing geographic data in Python - feat. Coronavirus
The Python Corner
by
5M ago
As you may know, I live in Italy, a beautiful country made famous by style, fashion, and food. But in the last days, we’ve become famous also for something a little less cool: the Coronavirus. At the end of February, in fact, we have become overnight the third country with more infections in the world, after China and South Korea. And Milan (the city I live in) is one of the most affected Italian cities. As this disease started to spread, everyone in town was like obsessed with the contagious map an interactive map that let you track the disease ..read more
Visit website
Serialization in Python with JSON
The Python Corner
by
5M ago
In 2016 I wrote a post about serialization in Python by using the pickle Python module. In this article, we will try to serialize Python objects by using another module: json. According to Wikipedia “JSON is an open-standard file format or data interchange format that uses human-readable text to transmit data objects consisting of attribute-value pairs and array data types (or any other serializable value)”. But why you should use to use JSON instead of the official pickle module? Well, it depends on what you have to do… JSON is a safer protocol, it’s human-readable and it’s a standard adopted ..read more
Visit website
Creating command-line interfaces in Python with Argparse
The Python Corner
by
5M ago
If you have ever written a script in Python you surely know the importance of having a good command-line interface for your application. And this is why today I’m posting here a link to another post I wrote for Real Python on this topic some months ago. Real Python is one of the most important resources on the web about Python and I’m really proud to be part of that community full of brilliant people that share a common passion for this incredible programming language. If you want to read this article just visit this link Happy Pythoning! D ..read more
Visit website
The Detailed Guide on Sending Emails from your Python App
The Python Corner
by
5M ago
Hey there! Now you are reading a quick but detailed guide on adding the essential functionality to your web app built with Python: email sending. From this post, you will learn about the capabilities of the native Python modules for email sending and then get the practical steps for creating a message with images and attachments. With plenty of code examples, you will be able to craft and send your own emails using an SMTP server. Before we start Just a brief theory and a couple of notes before we move to coding. In Python, there is an email package ..read more
Visit website
How to create a watchdog in Python to look for filesystem changes
The Python Corner
by
5M ago
Hey guys, today’s post is about how to create a watchdog in Python. But what is a “watchdog”? A watchdog is a little piece of software that monitors our filesystem looking for any changes (like the creation, change or deletion of a file or of a directory). When a change occurs, the watchdog report it to us raising a specific event that we can handle. For example, let’s suppose you have developed a program that use a configuration file. Your program could set a watchdog to monitor that file and if the configuration file is modified you could think to ..read more
Visit website
How to create a Windows Service in Python
The Python Corner
by
5M ago
Hi guys, today’s post is just for the ones of you that work with the “OS of the misoriented slashes”: Microsoft Windows. :) Have you ever had the need of writing a Python script that could run in background as a Windows Service? In this post, you will learn how to do it in less than 10 minutes, no jokes. I will skip all the introduction about Windows Services, how convenient they could be, how much could be appreciated the fact that they can be run in background even when the user is logged off etc… I mean, if you ..read more
Visit website
Speed up your code by using a cache in Python
The Python Corner
by
5M ago
If the first concern of a developer is to be sure that the code they write works well, the second one is to make sure that it run fast. This is expecially true when you’re dealing with web applications, where the scalability of your application is a crucial topic. For this reason, one of the most important tool we can use to improve the speed of our code is the use of a cache system. A cache system is a component that stores data so that future requests for data we already served in the past, could be accomplished faster ..read more
Visit website
When To Use Generators in Python
The Python Corner
by
5M ago
Following a request of a reader, today we’re going to discuss when to use iterators and generators in Python. First of all, it’s important to know what iterators and generators are, so if you don’t know exactly what they are, I suggest to have a look at my previous article on this topic. Now that everything is clear, we can start analyzing when to use these features. Let’s start saying that if you have read my previous article, the use of the iterator protocol should be quite clear: you use iterator protocol when you have a custom object that you ..read more
Visit website
Lambdas and functions in Python
The Python Corner
by
5M ago
In my last post, I discussed some ways to avoid nested code in Python and discussing the “filter” and “map” functions I mentioned the lambda functions. After that article, some reader asked me to write a little more about this topic, so … here I am. :) Let’s start with a mantra. If you want to know what something is, in Python, just use your REPL. So, start the Python REPL and define a lambda: Python 3.6.2 |Anaconda custom (64-bit)| (default, Sep 19 2017, 08:03:39) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more ..read more
Visit website

Follow The Python Corner on FeedSpot

Continue with Google
Continue with Apple
OR