Tuesday, 30 August 2022

Day 94 : Extract Text from Image using Python

 pip install pytesseractpip install pillowfrom PIL import Imagefrom pytesseract import pytesseract#Define path to tessaract.exepath_to_tesseract = r'C:\Program Files\Tesseract-OCR\tesseract.exe'#Define path to imagepath_to_image = 'texttoimage.png'#Point...

Day 93 : Generate Barcode using Python

 pip install python-barcodeimport barcodefrom barcode.writer import ImageWriter  #Define content of the barcode as a stringnumber = input("Enter the code to generate barcode : ")  #clcoding.com#Get the required barcode formatbarcode_format...

Day 92 : Details about the Image in Python

 img=Image.open('binod.jpg') # The file format of the source file.print(img.format) # Output: JPEG# The pixel format used by the image. #Typical values are "1", "L", "RGB", or "CMYK."print(img.mode) # Output: RGB# Image size,...

Friday, 26 August 2022

Day 89 : Get Domain Name Information using Python

 import whoisdomain=input("Enter your Domain : ")domain_info = whois.whois(domain)for key, value in domain_info.items():    print(key,':', value)Enter your Domain : https://www.clcoding.com/ domain_name : ['CLCODING.COM', 'clcoding.com'] registrar...

Sunday, 21 August 2022

Wednesday, 17 August 2022

Tuesday, 16 August 2022

Day 84 : Download YouTube Video in MP3 format with Python

 # importing packagesfrom pytube import YouTubeimport os# url input from useryt = YouTube(str(input("Enter the URL of the video you want to download: \n>> ")))# extract only audiovideo = yt.streams.filter(only_audio=True).first()#...

Monday, 15 August 2022

Day 83 : Convert PDF to docx using Python

 from pdf2docx import Converterpdf_file = 'clcoding.pdf'docx_file = 'clcoding.docx'cv = Converter(pdf_file)cv.convert(docx_file)cv.close()#clcoding.com[INFO] Start to convert clcoding.pdf [INFO] [1/4] Opening document... [INFO] [2/4] Analyzing...

Indian Flag using Python || हर घर तिरंगा || #azadikaamritmahotsav

INDIAN Flag in Python. All dimensions are as per our INDIAN standards. Let us know if you have any suggestions.import numpy as npimport matplotlib.pyplot as pyimport matplotlib.patches as patch#Plotting the tri colours in national flaga =...

Day 81 : URL Shortener with Python - Tinyurl

 import pyshortenerslong_url = input("Enter the URL to shorten: ")##TinyURL shortener servicetype_tiny = pyshorteners.Shortener()short_url = type_tiny.tinyurl.short(long_url) print("The Shortened URL is: " + short_url)#clcoding.comEnter...

Day 80 : Create an Audiobook in Python

 import PyPDF2import pyttsx3engine = pyttsx3.init()# Read the pdf by specifying the path in your computerpdfReader = PyPDF2.PdfFileReader(open('clcoding.pdf', 'rb'))# Get the handle to speakerspeaker = pyttsx3.init() # split the pages...

Day 77 : Python program to print Emojis

 import emojiprint(emoji.emojize(":India:"))print(emoji.emojize(":books:"))print(emoji.emojize(":red_heart:")) print(emoji.emojize(":hibiscus:"))print(emoji.emojize(":rose:"))print(emoji.emojize(":baby:"))#clcoding.com🇮🇳 📚 ❤️ ...

Day 74 : Python Program to Check a Number is a Disarium Number

 Number = int(input("Enter the Number to Check Disarium Number = "))length = len(str(Number))Temp = NumberSum = 0rem = 0 #clcoding.comwhile Temp > 0:    rem = Temp % 10    Sum = Sum + int(rem**length)   ...

Day 73 : Get address detail through python code

 from geopy.geocoders import Nominatim # Using Nominatim Apigeolocator = Nominatim(user_agent="geoapiExercises")# Zipocde inputa = input("Enter the zipcode : ")zipcode = a   # Using geocode()location = geolocator.geocode(zipcode)#...

Sunday, 14 August 2022

Day 68 : Python program to find compound interest

 # Python program to find compound interestdef compound_interest(principle, rate, time): # Calculates compound interest Amount = principle * (pow((1 + rate / 100), time)) CI = Amount - principle print("Compound interest is", CI)P=float(input("Enter...

Day 67 : Python program to add two numbers

 # Python program to add two numbersnumber1 = input("First number: ")number2 = input("Second number: ")# Adding two numbers# User might also enter float numberssum = float(number1) + float(number2)# Display the sum# will print value in...

Day 65 : Python program to find the factorial of a number

 # To take input from the usernum = int(input("Enter a number : "))factorial = 1# check if the number is negative, positive or zeroif num < 0:   print("Sorry, factorial does not exist for negative numbers")elif num == 0: ...

Day 63 : Python Program to Remove Punctuations From a String

 # define punctuationpunctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''# To take input from the usermy_str = input("Enter Your String : ")# remove punctuation from the stringno_punct = ""for char in my_str:   if char...

Day 61 : Python Program to Print the Fibonacci sequence

 # Program to display the Fibonacci sequence up to n-th termnterms = int(input("How many terms? "))# first two termsn1, n2 = 0, 1count = 0# check if the number of terms is validif nterms <= 0:   print("Please enter a positive...

Day 59 : PDF file protection using password

 #pip install PyPDF2from PyPDF2 import PdfFileWriter, PdfFileReaderimport getpasspdfwriter=PdfFileWriter()pdf=PdfFileReader('E:\\clcoding.pdf')for page_num in range(pdf.numPages):    pdfwriter.addPage(pdf.getPage(page_num))password=getpass.getpass(prompt='Enter...

Day 58 : Scatter Plot using Matplotlib in Python

 import matplotlib.pyplot as pyplot# Create datariding = ((17, 18, 21, 22, 19, 21, 25, 22, 25, 24),(3, 6, 3.5, 4, 5, 6.3, 4.5, 5, 4.5, 4))swimming = ((17, 18, 20, 19, 22, 21, 23, 19, 21, 24),(8, 9, 7, 10, 7.5, 9, 8, 7, 8.5, 9))sailing...

Popular Posts

Categories

100 Python Programs for Beginner (98) AI (39) Android (24) AngularJS (1) Api (2) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (197) C (77) C# (12) C++ (83) Course (67) Coursera (251) Cybersecurity (25) Data Analysis (3) Data Analytics (3) data management (11) Data Science (149) Data Strucures (8) Deep Learning (21) Django (16) Downloads (3) edx (2) Engineering (14) Euron (29) Events (6) Excel (13) Factorial (1) Finance (6) flask (3) flutter (1) FPL (17) Generative AI (11) Google (36) Hadoop (3) HTML Quiz (1) HTML&CSS (47) IBM (30) IoT (1) IS (25) Java (93) Java quiz (1) Leet Code (4) Machine Learning (85) Meta (22) MICHIGAN (5) microsoft (4) Nvidia (4) Pandas (4) PHP (20) Projects (29) pyth (1) Python (1052) Python Coding Challenge (456) Python Quiz (124) Python Tips (5) Questions (2) R (70) React (6) Scripting (3) security (3) Selenium Webdriver (4) Software (17) SQL (42) UX Research (1) web application (8) Web development (4) web scraping (2)

Followers

Python Coding for Kids ( Free Demo for Everyone)