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.
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:
The thing about math is…
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.
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.
And this is how it looks like in Python.
It's just a simple one-liner…
In this article, I will be showing you how you can calculate the Bollinger bands of any stock with Python.
The modules that we will need are listed below and you can simply install them with a
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…
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.
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:
In this article, I will be showing you how you can calculate the Exponential Moving Average of a stock using Python.
The modules that we will be needing are listed below and you can simply install them with a
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…
pip3 install jyserver
Of course, you will also need Flask installed, which you can install like this.
pip3 install flask
Let’s start by creating our
You’ll notice, this is…
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.
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
In this article, we will primary be focusing on…
In this article, I will explain how you can use the simple moving average crossover to identify buy and sell signals.
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…
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.
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.
In this article, I will guide you throughout the process of hosting your Flask Application live on PythonAnywhere for free.
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.
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…