LogoLogo
Sohayla's InstagramForum
  • Welcome to eInspire
  • mResource
    • mResource
  • Sohayla Notes
    • 📚Sohayla
      • Math 1
      • Grade 12
        • 🧮Pure Mathematics
          • ⏹️Calculus
            • 1️⃣Chapter 1
            • 2️⃣Chapter 2
            • 3️⃣Chapter 3
        • ⚗️Chemistry
          • ⏺️Inorganic Chemistry
            • 1️⃣Chapter One : [Transition Elements]
            • 2️⃣Chapter Two : [Chemical Analysis]
            • 3️⃣Chapter Three : [Chemical Equilibrium]
          • ⏺️Organic Chemistry
            • 5️⃣Chapter Five : [Organic Chemistry]
        • ⚛️Physics
          • ⏺️Classical Physics
            • 1️⃣Chapter 1 : [Electric current and ohm's law]
            • 2️⃣Chapter 2 : [Magnetic effect of electric current & measuring tools]
          • ⏺️Modern Physics
            • 5️⃣Chapter 5 : [Wave particle duality]
        • 🧊Applied Mathematics
          • ⏹️Statics
            • 1️⃣Chapter 1 : [Friction]
            • 2️⃣Chapter 2 : [Moments]
            • 4️⃣Chapter 4 : [General Equilibrium]
            • 3️⃣Chapter 3 : [Parallel Coplanar Forces]
          • ⏹️Dynamics
            • 2️⃣Unit 2 : [Newton's law of motion]
            • 3️⃣Unit 3 : [Impulse and collision]
        • 🇬🇧English
        • 🇸🇦Arabic
          • ⏺️نحو
            • 1️⃣الوحدة الأولى : [النطق والإملاء]
            • 2️⃣الوحدة الثانية : [الأبنية والمشتقات]
        • 📊Statistics
  • Programming
    • 🐍Python Pioneers
      • Introduction to Python
    • 🕹️Lua
      • What is a script?
      • Mathematics in Lua
Powered by GitBook
On this page
  • What is Python?
  • Why Choose Python?
  • Installing Python
  • Your First Python Program
  • Resources

Was this helpful?

  1. Programming
  2. Python Pioneers

Introduction to Python

PreviousPython PioneersNextLua

Last updated 1 year ago

Was this helpful?

What is Python?

Python is a high-level, general-purpose programming language created by Guido van Rossum. It was first released in 1991. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. It allows developers to express concepts in fewer lines of code than might be possible in languages such as C++ or Java.


Why Choose Python?

  • Ease of Learning and Use: Python has a simple and readable syntax which reduces the cost of program maintenance. It's a great language for beginners due to its readability and simple setup process.

  • Community Support: Python has a large and active community which contributes to a vast selection of libraries and frameworks, making the development process faster and easier.

  • Versatile: It's a flexible language that is capable of handling a variety of programming tasks such as web development, data analysis, artificial intelligence, scientific computing, etc.

  • Employability: Python is highly in-demand in the job market, especially in growing fields like data science and machine learning.


Installing Python

  1. Download Python:

    • Go to the .

    • Click on the download link for the latest version of Python.

  2. Install Python:

    • Run the downloaded file.

    • Ensure that you check the box that says "Add Python x.x to PATH" before you click "Install Now".

  3. Verify Installation:

    • Open a command prompt or terminal.

    • Type python --version and press Enter. You should see the version of Python that you installed.


Your First Python Program

  1. Open IDLE:

    • Search for IDLE, which is the Python IDE installed with Python, and open it.

  2. Create a New File:

    • Go to File > New File.

  3. Write Your Program:

    • In the new window, type the following code:

print("Hello, World!")
  1. Save and Run Your Program:

    • Save the file with a .py extension, like hello.py.

    • Press F5 or go to Run > Run Module to run your program.

Congratulations! You've just written and run your first Python program.


Resources

  • Online Tutorials: Websites like Codecademy, Coursera, and Udacity offer interactive Python tutorials.

  • Books:

    • "Python Crash Course" by Eric Matthes.

    • "Automate the Boring Stuff with Python" by Al Sweigart.

  • Community:

Official Documentation: The is a comprehensive resource that covers all aspects of Python programming.

for asking technical questions.

for joining discussions and getting help on your Python journey.

🐍
Python official website
official Python documentation
Stack Overflow
Reddit’s r/learnpython