Python-Language
Python-Language

Python-Language

AI summary

Comprehensive guide to Python programming covering installation, basic concepts, variables, data types, control flow, loops, input/output, data structures, functions, modules, error handling, object-oriented programming, file handling, datetime manipulation, random number generation, regular expressions, JSON handling, and database connections.

Type
Study Group
image

1. An Introduction to Python

This section will help you get started with Python Programming language by installing it and running your first program. Also, it will walk you through the basic concepts and fundamentals of Python.

Get Started With PythonGet Started With PythonPython StatementsPython StatementsPython KeywordsPython KeywordsPython OperatorPython Operator

2. Variables and Data Types

Learn how to create, modify, delete variables of different types. Learn to use some basic numeric (int, float, and complex), string, and Boolean types that are built into Python.

For example, we can create a variable with a specific name. Once you create a variable, you can later call up its value by typing the variable name.

Python VariablesPython VariablesPython Data TypesPython Data TypesPython Casting (type conversion): Python Casting (type conversion): Python NumberPython Number

3. Control Flow and Loops

In Python, flow control is the order in which statements or blocks of code are executed at runtime based on a condition. The loop statement repeats a code block a number of times.

Control flow statementsControl flow statementsPython range() functionPython range() function

4. Python Input and Output

This section lets you know input and output in Python. Learn to get input from the user, files, and display output on the screen or console. Also, learn output formatting.

Python Input and OutputPython Input and Output

5. Basic Data Structures

Python ListsPython ListsPython TuplesPython TuplesPython SetsPython SetsPython DictionariesPython DictionariesPython StringPython String

6. Python Functions and Modules

Functions in PythonFunctions in PythonPython ModulesPython ModulesCheck Modules Attributes Check Modules Attributes

7. Python Exceptions and Errors

Python Exceptions and Errors.Python Exceptions and Errors.

8. Object Programing Language

Classes and Objects in PythonClasses and Objects in PythonClass AttributesClass AttributesInstance Attributes Instance Attributes Class Method
Constructors in PythonPython Destructors to Destroy the ObjectEncapsulation in PythonPolymorphism in PythonInheritance in PythonPython Instance VariablesPython Instance MethodsPython Class VariablesPython Class MethodPython Static Method
Python Class Method vs. Static Method vs. Instance Method

9. File Handling in Python

Create File in Python: Open a File in Python: Read File in Python: Write to File Python: File Seek(): Move File Pointer Position: Rename Files in Python: Delete Files and Directories in Python: Copy Files and Directories in Python: Move Files Or Directories in Python: Python File Handling Quiz

10. Python FAQs:

The below list contains the solution to the common questions and challenges you can face working on files and directories in Python.

11. Python DateTime

Get Current Date and Time in Python: Python DateTime Format Using Strftime(): Python String to DateTime using strptime(): Timestamp In Python: TimeDelta in Python: Working With TimeZones in Python:

The below list contains the solution to the common questions and challenges you can face working with datetime in Python.

12. Python Random Module: Generate Random Numbers and Data

Python random intenger number: Python random choice: Python random sample: Python weighted random choices: Python random seed: Python random shuffle: Python random float number using uniform(): Generate random string and passwords in Python: Cryptographically secure random generator in Python: Python Secrets module: Python UUID Module: Python Random data generation QuizPython Random data generation Exercise

13. Regular Expression in Python (Python RegEx)

Python compile regex patternPython regex match: A guide for pattern matchingPython regex searchPython regex find all matchesPython regex splitPython Regex replacePython regex capturing groupsPython regex metacharacters and operatorsPython regex special sequences and character classesPython regex flagsPython regex span(), start(), and end()

14. Python JSON

Python JSON EncodingPython JSON ParsingValidate JSON Data using PythonPrettyPrint JSON Data using PythonPost JSON using the requests libraryMake a Python Class JSON serializableConvert JSON Data Into a Custom Python Object (Custom JSON Decoder)Python JSON Handle Unicode DataParse a JSON response using the Python requests librarySerialize Python DateTime into JSONSerialize Python Set into JSONSerialize NumPy array into JSONPython Check if a key exists in JSONParse multiple JSON objects from filePython JSON Exercise

15. Python Database

Python SQLite: Python MySQL: Python PostgreSQL: