Three months ago, I had big dreams. I wanted to become a millionaire, get in fantastic shape, and finish reading 100 books all before I turn 20 years old. Did I achieve them? No, not a single one.
In this article, I want to share with you guys the biggest mistake I have made when it comes to achieving goals that prevented me from potentially succeeding.
My biggest mistake was that I was too goal-oriented. I focused too much on the results and stats.
The downside of being a goal-oriented person is that the beginning is always tough in almost…
The first thing you will need to do in order to create games using Pygame is to install it on your systems. To do that, you can simply use the following command:
pip install pygame
Once that is done, just import Pygame and start off with your game development.
To create the screen using Pygame, you will need to make use of the display.set_mode() function. Also, you will…
make a simple hangman game with Python programming language
Let the user guess characters for random words
Hello Every one, Today I am going to show you how to build a simple calculator with Python programming language.
The Plan
Our Calculator has to do the following:
Add, divide, multiply, and subtract numbers
Now you can start thinking about how this might work in code. The code will need to do the following:
This list is like a road…
Hello Every one Today I am going to show how to extract phone numbers and emails from random texts with python.
I was setting with my grandpa like usual and he challenged to solve the lady broken eggs equation. I was curious about what this is about so I asked him then he said that there was a lady walking the street carrying a lot of eggs in a basket and a guy was walking by her and he hit her by mistake and the egg basket dropped and all the eggs broke so she went to the judge with the guy and explained what happened, so he asked her about how many eggs were in the basket so she said…
1- Import The Libraries
from forex_python.converter import CurrencyRates, CurrencyCodes
We are using the forex library for our project
2- Create the class
c = CurrencyRates()
3- running the program
print(c.get_rate('USD', 'EUR'))
0.9222539887
You will get this number if you wrote everything wrote
3.2 — run the program in another way
print(c.convert('USD', 'EUR', 20))
in this time you will get how many dollars are in 20 euros
the output will be
18.445079774
4 — create a class
curr = CurrencyCodes()
5- swap to symbol
print(curr.get_symbol('USD'))
if you got it write you git the symbol of USD which is $
5.2 —…
OpenCV is the most popular library for computer vision. Originally written in C/C++, it now provides bindings for Python.
OpenCV uses machine learning algorithms to search for faces within a picture. Because faces are so complicated, there isn’t one simple test that will tell you if it found a face or not. Instead, there are thousands of small patterns and features that must be matched. The algorithms break the task of identifying the face into thousands of smaller, bite-sized tasks, each of which is easy to solve. These tasks are also called classifiers.
For something like a face, you might…
A simple programmer who loves Medium