Introduction to Python & VS Code
Key Features of Python
Python is Easy to Learn and Use:
There is no prerequisite to start Python, since it is Ideal programming language for beginners.
High Level Language:
Python don’t let you worry about low-level details, like memory management, hardware-level operations etc.
Python is Interpreted:
Code is executed line-by-line directly by interpreter, and no need for separate compilation. Which means
- You can run the same code across different platforms.
- You can make the changes in code without restarting the program.
Dynamic Typed:
Python is a dynamic language, meaning there are no need to explicitly declare the data type of a variable. Type is checked during runtime, not at compile time.
Object Oriented:
Python supports object-oriented concepts like classes, inheritance, and polymorphism etc. OOPs empowers Python with modularity, reusability and easy to maintain code. Extensive Library are Available: Python has huge set of library and modules, which can make development lot easier and faster.
Cross Platform:
Same Python code can run on Windows, macOS and Linux, without any modification in code.
Good Career Opportunities:
Python is in high demand across industries like Software development, AI, finance, and cloud computing etc.
Limitations of python
Performance Limitations:
Python is an interpreted language which makes it slower than compiled languages like C++ or Java.
Not preferred for Mobile Apps and Front End:
Python isn’t preferred for Front End dev or mobile apps because of slower execution speeds and limited frameworks compared to JavaScript or Swift.
Memory Expensive:
Python consumes more memory because of its high-level nature and dynamic typing.
Lack of Strong Typing:
Dynamic typing makes Python easy to code, but it can lead to runtime errors that would be caught at compile time in statically typed languages like Java or C#.
VS Code:
VS code is a coding environment that is most commonly used in IT industry and it is made by microsoft. we will be using vscode to execute python programs. In our Jagruti Degree and PG College lab every computer has vscode installed and ready to be used.
Follow the below steps:
- Open VS Code
- Create a File with FILENAME.py
- Start coding
- To execute the program, on the right side press play symbol button or press Alt+Ctrl+N