Convert Video to Audio Using Python - Python Course
Convert Video to Audio Using Python - Python Course
56
views
1
comment
💖 Heart In Word Format Using Python - Free Python Course
💖 Heart In Word Format Using Python - Free Python Course
35
views
Punctuation Remove From String Using Python - Free Python Course
Punctuation Remove From String Using Python - Free Python Course
41
views
Draw a Flower using Turtle in Python- Free Python Course
Draw a Flower using Turtle in Python- Free Python Course
45
views
Draw Chessboard Using Python - Free Python Course
Draw Chessboard Using Python - Free Python Course
32
views
Find Country Info In Python - Free Python Course
Countryinfo is a Python module that is very simple to use for every beginner in Python. It is used to get data about any country according to ISO, states, and regions of the country. If you have never used this Python module before then you can easily install it by using the pip command;
pip install countryinfo.
41
views
Find Factor Number Using Function In Python-Free Python Course
Find Factors of a Number using Function
This program is created using a user-defined function named FindFact(). This function receives the number entered by user as its argument and prints all its factors from inside this function.
36
views
Fibonacci Series In Python- Free Python Course
Python Program for Fibonacci numbers
The Fibonacci numbers are the numbers in the following integer sequence.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..
In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation
Fn = Fn-1 + Fn-2
with seed values
F0 = 0 and F1 = 1.
59
views
Countdown Timer Using Function In Python-Free Python Course
In this project, we will be using the time module and its sleep() function. Follow the below steps to create a countdown timer:
Step 1: Import the time module.
Step 2: Then ask the user to input the length of the countdown in seconds.
Step 3: This value is sent as a parameter 't' to the user-defined function countdown(). Any variable read using the input function is a string. So, convert this parameter to 'int' as it is of string type.
Step 4: In this function, a while loop runs until time becomes 0.
Step 5: Use divmod() to calculate the number of minutes and seconds. You can read more about it here.
Step 6: Now print the minutes and seconds on the screen using the variable timeformat.
Step 7: Using end = '\r' we force the cursor to go back to the start of the screen (carriage return) so that the next line printed will overwrite the previous one.
Step 8: The time.sleep() is used to make the code wait for one sec.
Step 9: Now decrement time so that the while loop can converge.
Step 10: After the completion of the loop, we will print "Fire in the hole" to signify the end of the countdown.
36
views
Armstrong Number In Python-Free Python Course
A positive integer is called an Armstrong number of order n if
abcd... = an + bn + cn + dn + ...
In case of an Armstrong number of 3 digits, the sum of cubes of each digit is equal to the number itself. For example:
153 = 1*1*1 + 5*5*5 + 3*3*3 // 153 is an Armstrong number.
26
views
Automatic Sent WhatsApp MSG Using Python- Free Python Course
Python PyAutoGUI Module
We all have seen various message boxes while performing multiple tasks on different types of applications and websites. These message boxes are of different types, such as alert message box, confirm message box, password message box, and many other types. These different types of message boxes are meant for displaying a particular message from the website or application on which we are performing the given task. Like the confirm message box asking for the confirmation from the user working on a website or application, and this confirmation can be about anything such as submission of application, etc. Therefore, these message boxes become a very important part of an application or website, enhancing their delivery quality. These messages are part of an application's Graphical User Interface (GUI), and these come in-built with the application or website. These message boxes are specially created to convey some important messages to the user that require the user's attention on that message. These message boxes help the applications or websites grab the user's spot attention so that important messages from these applications or websites never be missed. Almost every application or website in today's time has the in-built feature of message boxes in their GUI, and that's why learning about these message boxes is becoming important in today's time.
Many programming languages have in-built or extended packages which can be used to create such message boxes, and these message boxes can be embedded in the GUI of the application or website. One can use the functions of these packages offered by different programming languages to create different types of message boxes. Talking particularly about Python, it alone offers several libraries & packages which we can use to create message boxes for GUI of any application or website. One such Python package is the pyautogui module which comes with lots of in-built, and we can use these functions to create message boxes. Therefore, in this tutorial, we will learn about this pyautogui module of Python and learn to create message boxes using the functions of this module. We will use the functions of this module in the example programs of this tutorial to create sample message boxes.
Introduction to PyAutoGUI Module of Python
The pyautogui module is a Python package that comes with multiple functions that can be used to automate the GUI of our system or machine. We can also use the functions of this module to automate the functioning of the keyboard and mouse of our system. Other than this, the pyautogui module also offers many other GUI functions which we can use to create message boxes for GUI of any application and website. This article only focuses on this functionality of the pyautogui module. It means that we will only talk and learn about these GUI functions (used to create message boxes) and learn about their implementation in this tutorial by using them in example programs. But, before we start learning about these functions, we have to first go through the installation part.
68
views
Find Average Number In Python- Free Python Course
Python Program to get list size n and n elements of list, then compute sum and average of the elements.
Sample Input 1:
5 5 7 9 3 1
Sample Output 1:
25 5.0
29
views
Perfect Number In Python- Free Python Course
Perfect Number, a positive integer that is equal to the sum of its proper divisors. The smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496, and 8,128.
47
views
QR Code Generation Using Python- Free Python Course
Nowadays we all use QR code for multiple purposes like making payments, sharing WiFi, etc. Have you ever wished to generate such QR code on your own? We are here with a project for QR code generator using Python. So, follow us to build this Python project.
About QR Code Generator Project
QR Code is a machine-readable matrix barcode that uniquely represents information. With the increase in optical capabilities of smartphones, the use of QR codes started increasing.
In this project, we will build a QR Code generator using Python Modules.
Generate QR Code in Python
We will be using Tkinter and Qrcode modules in Python to build this project. We use the Tkinter module to build the GUI to take the following inputs:
text/URL to convert to QR Code
location to save the QR code with name
size of the QR code.
Then we generate the QR code from the above inputs and save in the given location using the qrcode module.
the Source Code for QR Code Generator in Python
127
views
1
comment
Check Even Odd Number In python- Free Python Course
Python Program to Check if a Number is Odd or Even
Odd and Even numbers:
If you divide a number by 2 and it gives a remainder of 0 then it is known as even number, otherwise an odd number.
Even number examples: 2, 4, 6, 8, 10, etc.
Odd number examples:1, 3, 5, 7, 9 etc.
33
views
1
comment
Binary Number In Python- Free Python Course
n Python, you can simply use the bin() function to convert from a decimal value to its corresponding binary value. And similarly, the int() function to convert a binary to its decimal value. The int() function takes as second argument the base of the number to be converted, which is 2 in case of binary numbers.
38
views
While Loop In Python-Free Python Course
Python While Loop is used to execute a block of statements repeatedly until a given condition is satisfied. And when the condition becomes false, the line immediately after the loop in the program is executed.
Syntax:
while expression:
statement(s)
107
views
Factorial Number In Python || Python Program for factorial of a number- Free Python Course
Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720.
56
views
Perfect Number In Python-Free Python Course
Playing with numbers is something that we are doing since our childhood. The basic arithmetic operations performed on numbers generate valuable results. In the voyage of learning, we must give more emphasis to the logic develop in mathematics as they become the foundation of programming.
In this article, let us discuss what is a perfect number, what are the steps to determine whether a number is perfect or not, and finally, we shall see how its program can be written in Python.
So, let's get started…
First, let us understand what is a perfect number?
49
views
Print Function In Python- Free Python Course
The print() function prints the specified message to the screen, or other standard output device.
The message can be a string, or any other object, the object will be converted into a string before written to the screen.
31
views
1
comment