An Interest In:
Web News this Week
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
Python 101: Ultimate Python Guide or Introduction to Modern Python
What is Python?
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development.
What makes python so popular?
- It is simple and easy to learn syntax.
- Debugging Python programs is easy
- increased productivity it provides
- Its beginner friendly.
- Its open source.
- Its versatile.
- Python has a large and active community
- It has archive of modules and libraries
What types of jobs use Python?
Since python is a general-purpose language, its used across a variety of fields and industries. These are just a few job titles that may use Python:
- Developer
- Data analyst
- Data scientist
- Ethical hacker/penetration tester
- Software engineer
- Data journalist
- Cloud architect
- QA engineer
What is Python used for?
- developing websites and software
- task automation
- data analysis
- data visualization
- Software testing and prototyping
Python installation steps
- Visit https://www.python.org/downloads/
- Select your Operating system(Windows, Linux, MacOS)
- Select the release or version, click on it to download.
- Double click on the file to execute and install.
- For window mark add to system pathsFor more check on the python documentation for more documentations.
Lets test our installed python
- Open Terminal on Linux or cmd on windows
- Run the python --version command to check if you installed the correct version.if python is installed, the output will be similar to as below:
C:\Users\UCHE>python --versionPython 3.9.7C:\Users\UCHE>
we can now open python interpreter shell on the terminal with this command. the output will be similar to as below:
C:\Users\UCHE>pythonPython 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>>
Our first code is to print hello world using python.
>>> print("Hello, World!")Hello, World!>>>
Next, lets read from user input, declare it in a variable and print
>>> name = input("enter your name: ")enter your name: Bale>>> print("hello, " + name)hello, Bale>>>
we can also use a code editor and IDEs(Integrated Development Environment) to write our python code.
Here are the list of best python IDEs and code editors
- PyCharm
- Visual Studio Code
- Sublime Text
- Atom
- Jupyter Notebook
- Eclipse + PyDev + LiClipse
- Vim
- GNU Emacs
- Spyder
- Thonny
- Komodo Edit
References
Original Link: https://dev.to/joshuauche/python-101-ultimate-python-guide-or-introduction-to-modern-python-3b89
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To