Saturday, 22 April 2023

Object Oriented Programming in Python

 Object-oriented programming (OOP) is a programming paradigm that is based on the concept of "objects," which can contain data and code to manipulate that data. Python is an object-oriented programming language that supports OOP concepts such as inheritance, encapsulation, and polymorphism. Here are some key concepts and syntax used in Python...

Sunday, 26 March 2023

Top 5 examples of Python decorators:

 @staticmethod: This decorator is used to define a static method in a class. A static method is a method that can be called on the class itself rather than on an instance of the class. Here's an example:class MyClass:    @staticmethod    def my_static_method():        print("This is a static method")@classmethod:...

5 awesome hidden features in Python

 Walrus operator (:=): This operator allows you to assign and return a value in the same expression. It can be particularly useful in list comprehensions or other situations where you need to assign a value to a variable and use it in a subsequent expression. Here's an example:if (n := len(my_list)) > 10:    print(f"List is too long...

Wednesday, 22 March 2023

Creating a LOG IN form by taking image in background

In this we are going to make a Log_In form in which login filling options will be in a transparent box. And you can add your own background image also. Note*:- TO change the background go inside the style tag. Inside style tag go to the...

Friday, 17 March 2023

Fancy Hover Buttons in HTML using CSS

 In this we are going to add three types of hover button styles which will make your buttons very innovative and attractive.1.Border Pop2.Background Slide3.Background Circle Code:-<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <meta http-equiv="X-UA-Compatible" content="IE=edge">   ...

Monday, 2 January 2023

Wednesday, 28 December 2022

Sunday, 25 December 2022

Python Quiz | Day 35 | What is the output of following code ?

 Complete Playlist : https://bit.ly/3GLnZPySolution: Answer: D. Explanation:The list.pop method removes an element from the list, and returns the removed element.When used without arguments, pop removes and returns the last element...

Sunday, 2 October 2022

Lazy Operators 🥱 --- Python

IntroductionPython is a great language to learn, but it can be hard to pick up if you’ve never programmed before. A lot of the syntax and functions are pretty weird when compared to other languages like JavaScript, Ruby or Java. Luckily, Python has some helpful built-in functions that make it easier for beginners to get started learning programming....

Saturday, 10 September 2022

Day 100 : Python script that’ll keep you “online” all day

 #import the library pyautoguiimport pyautogui#imports the time libraryimport time#run the next lines of code while the state is set as “True”while True:    #move your cursor 10 pixels    pyautogui.moveRel(0, 10) ...

Day 99 : Word Art From an Image Using Python

 #reading an Imagefrom PIL import ImageImage.open("wolf.png")import pywhatkitpywhatkit.image_to_ascii_art('wolf.png','MyArt')#reading text fileread_file= open("MyArt.txt","r") print(read_file.read())  #clcoding.com..::.:::.:...

Day 98 : Convert Decimal number into other number using Python

 # Python program to convert decimal into other number systemsdec = int(input("Enter a Decimal Number: "))#decimal to binaryprint(bin(dec), "in Binary.")#decimal to octalprint(oct(dec), "in Octal.")#decimal to Hexadecimalprint(hex(dec),...

Friday, 2 September 2022

Day 96 : Track phone number using Python

 import phonenumbers#import geocoderfrom phonenumbers import geocoder#specify then phone numbera = input("Enter the Phone Number: ")#clcoding.comphonenumber = phonenumbers.parse(a)#display the location of phone numberprint(geocoder.description_for_number(phonenumber,'en'))Enter...

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🇮🇳 📚 ❤️ ...

Popular Posts

Categories

100 Python Programs for Beginner (78) AI (35) Android (24) AngularJS (1) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (179) C (77) C# (12) C++ (82) Course (67) Coursera (231) Cybersecurity (24) data management (11) Data Science (129) Data Strucures (8) Deep Learning (21) Django (14) Downloads (3) edx (2) Engineering (14) Excel (13) Factorial (1) Finance (6) flask (3) flutter (1) FPL (17) Google (34) Hadoop (3) HTML Quiz (1) HTML&CSS (47) IBM (30) IoT (1) IS (25) Java (93) Leet Code (4) Machine Learning (61) Meta (22) MICHIGAN (5) microsoft (4) Nvidia (4) Pandas (4) PHP (20) Projects (29) Python (951) Python Coding Challenge (398) Python Quiz (47) Python Tips (3) Questions (2) R (70) React (6) Scripting (1) security (3) Selenium Webdriver (4) Software (17) SQL (42) UX Research (1) web application (8) Web development (4) web scraping (2)

Followers

Person climbing a staircase. Learn Data Science from Scratch: online program with 21 courses