DEV Community

Punitha
Punitha

Posted on

Introduction to Python

  1. What is Python?

    • Python is a high-level, easy-to-learn programming language.
    • Python is an interpreted, object-oriented, and general-purpose programming language.
  2. Where is Python used?

    • Web Development
    • Data Analysis
    • Artificial Intelligence
    • Machine Learning
    • Automation
  3. Difference between Compiler and Interpreter?
    Compiler:
    * Translates the entire program at once
    * One language to another language
    * Whole execute
    * Shows all errors after compilation
    * Example: C, C++
    Interpreter:
    * Translates one line at a time
    * One language to another language
    * Execute line by line
    * Shows errors one by one while executing
    * Example: Python, JavaScript

  4. Who created Python?
    Guido van Rossum created Python and was first released in 1991.

  5. Run:

    • Py hello.py
    • Python hello.py
    • Python3 hello.py
    • File to run --> Scripting mode
    • Terminal run --> Interactive mode

Top comments (0)