Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 12, 2022 06:44 pm GMT

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

  1. Visit https://www.python.org/downloads/
  2. Select your Operating system(Windows, Linux, MacOS)
  3. Select the release or version, click on it to download.
  4. Double click on the file to execute and install.
  5. For window mark add to system pathsFor more check on the python documentation for more documentations.

Lets test our installed python

  1. Open Terminal on Linux or cmd on windows
  2. 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

  1. PyCharm
  2. Visual Studio Code
  3. Sublime Text
  4. Atom
  5. Jupyter Notebook
  6. Eclipse + PyDev + LiClipse
  7. Vim
  8. GNU Emacs
  9. Spyder
  10. Thonny
  11. Komodo Edit

References


Original Link: https://dev.to/joshuauche/python-101-ultimate-python-guide-or-introduction-to-modern-python-3b89

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To