Photo by Charles Deluvio

As a beginner coder, you might wonder whether or not you need to be good at math in order to code. In this article, I hope to clear that doubt.

Programming Is A World Of Its Own

First, I’d like you to know that coding is a broad term and it doesn't just refer to a single concept. What I mean is, you can do many things with code and the possibilities are practically endless. That said, here are a few things that you can accomplish with code:

Coding Isn’t Math — It's A Language

The thing about math is…


Photo by Hitesh Choudhary

In this article, I will provide you with three genuine reasons why you should learn to code in Python. Hopefully, by the end of this article, you will feel inspired or motivated to start learning.

1. Beginner Friendly Syntax

Now I’m sure you’ve probably heard this a lot, but let me explain why Python’s syntax is considered beginner-friendly. Suppose you wanted to write a simple program to print “Hello World” onto your console. This is how it would be done in Java.

Hello World In Java

And this is how it looks like in Python.

Hello World In Python

It's just a simple one-liner…


Photo by Jamie Street

In this article, I will be showing you how you can calculate the Bollinger bands of any stock with Python.

Step 1. Install the modules

The modules that we will need are listed below and you can simply install them with a pip3 install….

numpy==1.20.0
pandas==1.1.4
pandas-datareader==0.9.0
matplotlib==3.3.3

Step 2. Understanding Bollinger Bands

While I won’t be going too deep into the concept of Bollinger bands, I will try to provide a basic understanding of what they are. Bollinger bands are a type of technical indicator that allows traders to analyze the volatility of a stock and whether the price is high or low on a relative basis. The top…


Photo by Alex Knight

In this article, I will show you how you can use Google’s reCAPTCHA in your Flask application to prevent harmful bots. By the end of this article, we will have made a simple Flask app that forces a user to fill out a reCAPTCHA, before submitting a form. If you are interested in the code for this lesson, you check out the GitHub repository here.

Step 1. Create a reCAPTCHA

To create a reCAPTCHA, head over to this link, where you will find a form on Google’s reCAPTCHA website. Fill out the form so that it looks like this:


Photo by Ishant Mishra

In this article, I will be showing you how you can calculate the Exponential Moving Average of a stock using Python.

Step 1. Install the modules

The modules that we will be needing are listed below and you can simply install them with a pip3 install….

numpy==1.20.0
pandas==1.1.4
pandas-datareader==0.9.0
matplotlib==3.3.3

Step 2. Understanding Exponential Moving Average

Although I won’t be going too deep into the concept of EMA (Exponential Moving Average), I will be giving you a brief overview of what it is. EMA is a type of moving average indicator that gives greater weight or importance to previous stock prices. The essential difference between EMA and SMA is that EMA…


Photo by Christopher Gower

In this article, I will show you how you can access the JavaScript DOM in your Flask application. By the end of this article, you will have created a simple Flask app, that updates the DOM and increments a number whenever a button is clicked.

Step 1. Install the modules

To access the JavaScript DOM, we will be using a Python package called “JyServer.” You can simply install it with pip like this.

pip3 install jyserver

Of course, you will also need Flask installed, which you can install like this.

pip3 install flask

Step 2. The HTML

Let’s start by creating our index.html file.

You’ll notice, this is…


How you can estimate a stock’s support and resistance lines using linear regression

Photo by Chris Liverani

In this article, I will be showing you how you can estimate a stock’s support and resistance lines using the Python programming language. If you are only interested in the code for this project, then you can check out my GitHub repository here.

Step 1. Installing the necessary modules

First, create a file and title it requirements.txt. Next, you can find the necessary modules for this project over here. Go ahead and copy them, then paste it in your requirements.txt file. Now in your terminal or command prompt, run the following command.

pip install -r requirements.txt

Step 1.1. Import the necessary modules

Step 2. Getting the closing prices of a stock

In this article, we will primary be focusing on…


Photo by Jason Briscoe

In this article, I will explain how you can use the simple moving average crossover to identify buy and sell signals.

What is Simple Moving Average? (Brief Overview)

Average is calculated by summing up a group of numbers and then dividing the sum by the amount of numbers in the group. Simple moving average is calculated by continuously calculating the averages in a list of prices. If that doesn’t make sense, then hopefully this example will.

Here is a list of 15 closing prices of a stock.

223, 221, 222, 224, 224, 221, 222, 217, 218, 212, 218, 219, 217, 214, 216

Now let’s try to calculate…


Photo by Mitchell Luo

In this article, I’ll be showing you how you can hack the Google Chrome Dino Runner game and get an unlimited number of points.

Step 1: How to get the game

In order to play the Dino Runner Game, you need to be using the Google Chrome Browser, because this is a built-in browser game. Now head over to chrome://dino in Google Chrome. You should be at a page that looks like this.


Photo by Florian Olivo

In this article, I will guide you throughout the process of hosting your Flask Application live on PythonAnywhere for free.

Step 1: Create a requirements.txt

Create a new file in your project directory called requirements.txt. Make sure the spelling is correct. In the file write down all the libraries your package uses as well as the version. Here is how you can get the module version.

Here is what my requirements.txt looks like for my simple app.

flask==1.1.1

Step 2: Create a PythonAnywhere account

Head over to https://www.pythonanywhere.com/pricing and click on the button that says “Create a Beginner account.” This will allow you to create a free account. After clicking…

Sohan Dillikar

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