So here we are going to create our own music player with the help of Python. For this we will use three packages:

1. Tkinter → for UI

2. Pygame → for playing the music

3. os → for accessing your system’s files

So here we will see the each step for creating music player, we have divided our code into four parts.

In the first part we will import all the packages. Second we will create the UI. Third, we import all the music from the system and represent in application. …


No need to take anyone’s advice if you know Python and can create your own advice generator.

Here we will see how we can create our own random advice generator using Python. For this, I am going to use https://api.adviceslip.com/ API from Advice Slip. Now we will see the steps to making our own random advice generator.

Step no.1

As we are going to deal with the API, so firstly, we need to install the requests library. Just open the terminal and type the below command.

pip install requests

Now we will use this library.

import requests

Now the second…


We are going to learn how we can make our own contact book application using Python.

I will try and give a detailed explanation of each line. Let’s go ahead and see the code and try to understand it.

Contact_book = {}while True:choice = input(“Please select one [X/A/S/P] \n X –> EXIT \n A ==> ALL numbers \n S ==> SAVE \n P==> SEARCH the number “).upper()if choice == “S”:person_name = input(“Please enter the person name”)mobile_number = input(“Please enter the mobile number”)Contact_book[person_name] = mobile_numberelif choice == “P”:search_name = input(“Enter the name of…


There’s no need to take anyone’s advice if you know how to create your own advice generator in Python.

We will see how we can create our own random advice generator using Python. For this, I am going to use the advice slip API: https://api.adviceslip.com/

Now we will see the steps regarding how to create this random advice generator.

Step no.1

As we are going to deal with API, so, firstly, we need to install the requests library. Just open the terminal and type the below command:

pip install requests

Now we will use this library.

import requests

Now the…


Are you getting bored? How about letting Python suggest you some activity?

We are going to learn how we can make an activity generator using Python.

For making this project we are going to use the following API:

www.boredapi.com

Structure of data:


Hello everyone! We are going to learn how we can make a reminder application using Python. You can make your “drink water reminder” application or you can make “take a break reminder application”. I will share two ways first, for Mac users and the second one for Windows users.

First, we will see how you can make your reminder application if you are a Mac user.

For Mac users, we are going to use the pync library. We will divide our code into two parts — in the first part, we will import all required libraries, and in the second…


So here we are going to learn how we can convert our text into handwriting.

We will be using the pywhatkit library.

Step 1

Before importing the library we have to install pywhatkit into our project so for this just need to write below command into the terminal

pip install pywhatkit

So after this just need to import the library

import pywhatkit

So now the next step which is main step where we will convert our text into handwriting.

pywhatkit.text_to_handwriting(“hello everyone please check video for this article”,save_to=”new.png”)

Now we will run the program. In the same location, it will create the new.png


Note: This tutorial is purely for educational purposes. We do not advise that you download content from YouTube without permission.

Let’s see how we can make YouTube video downloader application using Python.

For this we will use two packages:

  1. pytube
  2. tkinter

So here we will use pytube package to download the video and tkinter for creating the UI for the application.

We will divide our code in three parts:

In first part we will import the required packages and after that we will make UI for the application , at the end we will define the function which will download…


We will learn how to make an email slicer using Python.

The first question that arises: what is an email slicer?

Email slicer is a tool wherein we pass the email id and it returns the user_name and the domain_name.

Now let’s see the coding part.

email_address = input(“enter your email address”).strip()username = email_adress[:email_adress.index(‘@’)]domain = email_adress[email_adress.index(‘@’) + 1:]print(f”your username {username} and domain name {domain}”)

In the first line, we have taken an email_address variable and taken the input from the user. We have also used the strip function for removing unwanted space.

In the second line, we…


We will learn how to generate random stories using Python. Here, we will use the random package for generating a story. It’s all about your creativity — you can make a funny, scary, or romantic story, and Python will help you with the rest.

So let’s see the code:

import randomtime = [“2 years ago”, ” today”, ” 1000 year ago”, ” yesterday”]person_name = [“Rishbah”, “Piyush”, “Apoorv”,”Kunal”,”Deva”,”Sumit”,”Nitin”,”Utkarsh”,”Shubhash”]place = [“forest”,”zoo “,” Hotel”, “garden”]food = [“chicken”,”panner”,”dosa”,”burger”]drinks= [“beer”,”rum”, “whiskey”,”juice”,”milk”]print(random.choice(time)+” “+random.choice(person_name)+” went to “+ random.choice(place)+” and he eaten “+random.choice(food)+ ” and also drank “+ random.choice(drinks))

Here, we…

Rajat upadhyaya

Application developer|Technical blogger|Youtuber(MASTERMIND CODER)|owner at www.yourtechnicalteacher.com

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