×

Python Tutorial

Python Basics

Python I/O

Python Operators

Python Conditions & Controls

Python Functions

Python Strings

Python Modules

Python Lists

Python OOPs

Python Arrays

Python Dictionary

Python Sets

Python Tuples

Python Exception Handling

Python NumPy

Python Pandas

Python File Handling

Python WebSocket

Python GUI Programming

Python Image Processing

Python Miscellaneous

Python Practice

Python Programs

Python Tutorial

Last updated : December 07, 2024

What is Python?

Python is an object-oriented, high-level, interpreted programming language with dynamic semantics. It has a rich set of high-level in-built data structures (data types) which are combined with dynamic typing and data typing. It makes Python a very popular and attractive programming language for rapid application development, and scripting. It is simple, easy to learn, and readable and Python's codes are smaller than codes of other programming languages like C, C++, Java, etc. The codes and relatively less indented which make the code readable/editable for the programmers all the time.

The Python Tutorial

In this Python tutorial, we covered almost all topics starting from basics to advanced topics like Machine learning with Python, Python Pandas, and Python Data Science, this Python tutorial is specifically designed for beginners and professionals.

Python Tutorial Topics

Python Overview

  1. Python - Introduction
  2. Python - Why Popular?
  3. Python - Virtual Environment
  4. Python - Install pip on MacOS
  5. Python - First Program Modes
  6. Python - if __name__ == '__main__'
  7. Python - __init__ and self
  8. Python - Upgrade Packages

Python Basics

  1. Python - Keywords
  2. Python - Built-in Functions
  3. Python - Comments
  4. Python - Block Comments
  5. Python - Multiline Comments
  6. Python - Command Line Args

Python Data Types

  1. Python - Variables
  2. Python - Data Types
  3. Python - Numeric Types
  4. Python - Determine Variable Type
  5. Python - type() Method

Python Input/Output

  1. Python - print() Function
  2. Python - I/O Operations
  3. Python - Multiple Inputs with split()
  4. Python - Fast I/O for Competitive Programming
  5. Python - Precision Handling
  6. Python - print() with end
  7. Python - sep in print()
  8. Python - file in print()
  9. Python - flush in print()
  10. Python - Print Multiple Variables
  11. Python - Ask for Integer Input
  12. Python - Ask for Valid Input
  13. Python - Input Hexadecimal Number
  14. Python - Input Octal Number
  15. Python - Input Binary Number
  16. Python - Read Input as Integer
  17. Python - Read Input as Float
  18. Python - Parse String to Float

Python Operators

  1. Python - Arithmetic Operators
  2. Python - Identity Operators
  3. Python - Membership Operators
  4. Python - Increment/Decrement Behavior
  5. Python - NOT Operators on Boolean
  6. Python - Logical Operators on String
  7. Python - if-else Conditional Operator

Python Conditional Statements

  1. Python - Conditional Statements
  2. Python - Conditional with break/continue

Python Control Statements

  1. Python - Loops
  2. Python - Access Index in for Loop
  3. Python - Looping Constructs
  4. Python - do-while Loop
  5. Python - break Statement
  6. Python - continue Statement
  7. Python - pass Statement
  8. Python - else with Loops
  9. Python - switch Statement Alternative

Python Functions

  1. Python - Functions Overview
  2. Python - Define/Call User Functions
  3. Python - Function Classifications
  4. Python - Function Calls
  5. Python - Function Parameters
  6. Python - Default Parameters
  7. Python - Function as Data Type
  8. Python - Lambda Function
  9. Python - Nested Lambda
  10. Python - Iterating with Lambda
  11. Python - map() with Lambda
  12. Python - filter() with Lambda
  13. Python - reduce() with Lambda
  14. Python - Function as Argument
  15. Python - Function as Return
  16. Python - Currying
  17. Python - Multiple Arguments

Python Strings

  1. Python - Strings
  2. Python - String Operators
  3. Python - String Methods
  4. Python - f-strings
  5. Python - Print to stderr
  6. Python - Read from stdin
  7. Python - String to Bytes
  8. Python - 'u' and 'r' Flags
  9. Python - String Comparison
  10. Python String Methods Reference
  11. Python - String formatting: % vs .format()
  12. Python - 'b' character in string literals
  13. Python - Find all indexes of word occurrences
  14. Python - Why use string.join(list)?
  15. Python - Remove trailing new line
  16. Python - Check if a string is a number (float)
  17. Python - Extract extension from filename
  18. Python - Random string with uppercase and digits

Python Modules

  1. Python - Check Module Version
  2. Python - Create/Import Modules
  3. Python - datetime Module
  4. Python - calendar Module
  5. Python - random Module
  6. Python - sys Module
  7. Python - time Module
  8. Python - pprint Module
  9. Python - Reload Modules

Python Lists

  1. Python - Lists Tutorial
  2. Python - List Comprehension
  3. Python - List Methods

Python Object Oriented Concepts

  1. Python - Constructors
  2. Python - Class/Static Variables
  3. Python - Static Methods
  4. Python - Metaclasses
  5. Python - @classmethod vs @staticmethod

Python Arrays

  1. Python - Signed & Unsigned Integer Arrays
  2. Python - Array Data Items & Methods
  3. Python - Accessing Array Elements
  4. Python - Adding Elements to Array
  5. Python - Convert Array to List
  6. Python - Retrieve Array Length
  7. Python - Dask Array

Python Dictionary

  1. Python - Dictionaries
  2. Python - Useful Dictionary Methods
  3. Python - OrderedDict
  4. Python - Dictionary Methods Reference
  5. Python - Generate Dictionary of Squares
  6. Python - Sort Dictionary by Key/Value
  7. Python - Merge Two Dictionaries
  8. Python - Sort Dictionary by Value
  9. Python - Copy Dictionary and Edit Copy

Python Set

  1. Python - Sets
  2. Python - Set Methods

Python Tuples

  1. Python - Tuples
  2. Python - Reverse Tuples in List
  3. Python - Create Tuple Without Parentheses
  4. Python - Create Tuple with One Element
  5. Python - Create Empty Tuple
  6. Python - Clear Tuple
  7. Python - Reinitialize Tuple
  8. Python - Tuple Exercises

Python Exception Handling

  1. Python - Exception Handling
  2. Python - User-defined Exception
  3. Python - Ignore Exceptions
  4. Python - Test Function for Exception

Python Numpy

  1. Python - NumPy
  2. Python - NumPy Array Indexing
  3. Python - NumPy Array Operations

Python Pandas

  1. Python - Data Analysis with Pandas
  2. Python - Pandas DataFrame
  3. Python - Conditional Selection in Pandas
  4. Python - MultiIndex in Pandas
  5. Python - Pandas GroupBy
  6. Python - Merging, Joining, Concatenating in Pandas
  7. Python - Pandas Missing Data
  8. Python - Pandas Data Input/Output
  9. Python - Pandas Data Operations

Python File Handling

  1. Python - File Handling
  2. Python - open() & close() Functions
  3. Python - File Name, Closed Status, Mode
  4. Python - Writing & Reading Files
  5. Python - Write in Existing File
  6. Python - Check if File Exists
  7. Python - FileNotFoundError Example
  8. Python - Print File Content & Name
  9. Python - Read File from Index
  10. Python - User Input, Save & Print
  11. Python - Rename File with os.rename()
  12. Python - Remove File with os.remove()
  13. Python - Import Files from Other Folders
  14. Python - File Methods

Python WebSocket

  1. Python - WebSocket Overview
  2. Python - WebSocket Server Concepts
  3. Python - WebSocket Server with Tornado
  4. Python - WebSocket with Socket-IO
  5. Python - WebSocket with Flask Socket-IO
  6. Python - WebSocket Keep Alive

Python GUI Programming

  1. Python - GUI with PyQt
  2. Python - Hello World with PyQt
  3. Python - Hello World with PyQt (Theory)
  4. Python - Hello World with PyQt (Practical)
  5. Python - PyQt Event Handling
  6. Python - PyQt Event Handling Examples
  7. Python - More PyQt Event Handling Examples
  8. Python - Button and Custom Event in PyQt
  9. Python - PyQt Layout Management (Drag and Drop)
  10. Python - GUI with Tkinter
  11. Python - Text Area and Button in Tkinter

Python Image Processing

  1. Python - Drawing Thailand Flag
  2. Python - Drawing Sweden Flag
  3. Python - Drawing Japan Flag
  4. Python - Convert Color Image to Grayscale
  5. Python - Find Complementary Image of RGB
  6. Python - Show RGB Image Planes
  7. Python - Resize Grayscale Image Without Inbuilt Functions
  8. Python - Resize RGB Image Without Inbuilt Functions
  9. Python - Convert RGB to HSV with OpenCV
  10. Python - Rotate Grayscale Image by 180° Without Functions
  11. Python - Smooth Grayscale Image with Median Blur
  12. Python - Smooth Grayscale Image with Mean Blur
  13. Python - Upscale Grayscale Image
  14. Python - Upscale RGB Image
  15. Python - Read and Save Image as Grayscale
  16. Python - Edge Detection
  17. Python - Crop Image
  18. Python - Generate and Read QR Code
  19. Python - Capture Mouse Clicks
  20. Python - Face and Eye Detection
  21. Python - Create Image Collage

Python Topic-wise MCQs

Python Practice

  1. Python Find Output Programs (Mixed topics)
  2. Python Find Output Programs (Basics - Set 1)
  3. Python Find Output Programs (Basics - Set 2)
  4. Python Competitive Coding Questions

Python Miscellaneous

  1. Python Math Module
  2. Python Operator Module
  3. Python - OS Module
  4. Python - Creating Directories & Handling Exceptions
  5. Python - Copy & Replace Files
  6. Python - Copy & Rename Files
  7. Python - Copy Files Between Directories
  8. Python - Check if File Exists
  9. Python - Copy Data Between Files
  10. Python - Create Nested Directory
  11. Python - List Files in Directory
  12. Python - Get Current Working Directory
  13. Python - Copy Data Between Excel Files
  14. Python - Shallow vs Deep Copy
  15. Python - Creating and Importing Packages
  16. Python - Creating Packages (Example)
  17. Python - Intro to Web Development with Flask
  18. Python - For Loop in Flask Templates
  19. Python - Matrix Implementation
  20. Python - Matrix Multiplication
  21. Python - Descriptors
  22. Python - Call External Command
  23. Python - Slice Notation
  24. Python - Understanding Slice Notation
  25. Python - 5 Best Web Scraping Libraries
  26. Python - Parse ISO 8601 Date
  27. Python - Quickest HTTP GET
  28. Python - timeit() Function Example
  29. Python - Greedy Algorithm Optimization
  30. Python - Linear Algebra
  31. Python - Data Visualization
  32. Python - Perceptron Algorithm
  33. Python - Scrape Links from Webpage
  34. Python - Text to Speech Model
  35. Python - Alarm Clock with Datetime & pyttsx3
  36. Python - Sending Emails with SMTP
  37. Python - Get Old Tweets with Getoldtweets3
  38. Python - Automating PDFs
  39. Python - Rock Paper Scissors Game
  40. Python - Download YouTube Videos
  41. Python - Binary Numbers Representation
  42. Python - Install Tkinter
  43. Python - Generators
  44. Python - List Comprehension vs Generators


Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.