Learn the basics of p5.js

Created with p5.js

Full disclosure — you won’t be an expert at creating digital art by the end of this article. However, you will learn the basics of it, and have a starting point to venture onto much bigger projects.

We will be working on creating a canvas filled with random geometric shapes. Is it possible to make something much more exciting with p5? Absolutely. Check out the example projects in the docs.

In this article, however, we’ll be sticking to simple geometries. This is to ensure that the complexity of the project does not deter us from learning the essentials. …

A Python Script to Display Weather Predictions (Part 2)

Photo by Lukas from Pexels

In the first part of this article, we wrote a python script that helps us check today’s weather. However, we had slightly bigger plans and we left some things unfinished. Today we are going to tweak our program so that it is more flexible in the day of the week we care about, and in the units in which we want to display our temperatures. We’ll also write a simple bash script that will allow us to execute our program with a much simpler command than with just using a python script. Let’s jump right into it!

Selecting the right day of the week

What you might…

A Python Script to Display Weather Predictions (Part 1)

Photo by Sora Shimazaki from Pexels

Checking the weather on a phone, or a desktop browser is not really much of a hustle, so why bother? First, if you’re working on your computer, then the terminal is much more accessible than your phone or even your browser. Second, if you know some Python, or are interested in learning the basics, then why not build something useful of your own? I love creating small projects with whatever languages or skills I learn, and if that sounds like you, let’s get started and make something.

What do I need to know?

I only assume that you have a basic understanding of Python (variables, control-flow…

Sandesh Chapagain

Learning new things regularly, and sharing the experience.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store