Статьи python на английском

What is Python? Executive Summary

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, as well as for use as a scripting or glue language to connect existing components together. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.

Читайте также:  Java oracle linux ubuntu

Often, programmers fall in love with Python because of the increased productivity it provides. Since there is no compilation step, the edit-test-debug cycle is incredibly fast. Debugging Python programs is easy: a bug or bad input will never cause a segmentation fault. Instead, when the interpreter discovers an error, it raises an exception. When the program doesn’t catch the exception, the interpreter prints a stack trace. A source level debugger allows inspection of local and global variables, evaluation of arbitrary expressions, setting breakpoints, stepping through the code a line at a time, and so on. The debugger is written in Python itself, testifying to Python’s introspective power. On the other hand, often the quickest way to debug a program is to add a few print statements to the source: the fast edit-test-debug cycle makes this simple approach very effective.

See also some comparisons between Python and other languages.

The PSF

The Python Software Foundation is the organization behind Python. Become a member of the PSF and help advance the software and our mission.

  • About
    • Applications
    • Quotes
    • Getting Started
    • Help
    • Python Brochure
    • All releases
    • Source code
    • Windows
    • macOS
    • Other Platforms
    • License
    • Alternative Implementations
    • Docs
    • Audio/Visual Talks
    • Beginner’s Guide
    • Developer’s Guide
    • FAQ
    • Non-English Docs
    • PEP Index
    • Python Books
    • Python Essays
    • Diversity
    • Mailing Lists
    • IRC
    • Forums
    • PSF Annual Impact Report
    • Python Conferences
    • Special Interest Groups
    • Python Logo
    • Python Wiki
    • Code of Conduct
    • Community Awards
    • Get Involved
    • Shared Stories
    • Arts
    • Business
    • Education
    • Engineering
    • Government
    • Scientific
    • Software Development
    • Python News
    • PSF Newsletter
    • PSF News
    • PyCon US News
    • News from the Community
    • Python Events
    • User Group Events
    • Python Events Archive
    • User Group Events Archive
    • Submit an Event
    • Developer’s Guide
    • Issue Tracker
    • python-dev list
    • Core Mentorship
    • Report a Security Issue

    Источник

    What Is Python Programming Language?

    Python code

    Albert Lukaszewski, Ph.D., is a veteran computer programmer, software engineer, and author, who specializes in the Python language.

    The Python programming language is freely available and makes solving a computer problem almost as easy as writing out your thoughts about the solution. The code can be written once and run on almost any computer without needing to change the program.

    How Python Is Used

    Hands typing code

    Python is a general-purpose programming language that can be used on any modern computer operating system. It can be used for processing text, numbers, images, scientific data and just about anything else you might save on a computer. It is used daily in the operations of the Google search engine, the video-sharing website YouTube, NASA and the New York Stock Exchange. These are but a few of the places where Python plays important roles in the success of the business, government, and non-profit organizations; there are many others.

    Python is an interpreted language. This means that it is not converted to computer-readable code before the program is run but at runtime. In the past, this type of language was called a scripting language, intimating its use was for trivial tasks. However, programming languages such as Python have forced a change in that nomenclature. Increasingly, large applications are written almost exclusively in Python. Some ways that you can apply Python include:

    • Programming CGI for Web Applications
    • Building an RSS Reader
    • Reading from and Writing to MySQL
    • Reading from and Writing to PostgreSQL
    • Creating Calendars in HTML
    • Working With Files

    How Does Python Compare to Perl?

    Design professionals having meeting in creative office

    Python is an excellent language for large or complex programming projects. Integral to programming in any language is making the code easy for the next programmer to read and maintain. It takes great effort to keep Perl and PHP programs readable. Where Perl gets unruly after 20 or 30 lines, Python remains neat and readable, making even the largest projects easy to manage.

    With its readability, ease of acquisition and extensibility, Python offers much faster application development. In addition to easy syntax and substantial processing abilities, Python is sometimes said to come with «batteries included» because of its extensive library, a repository of pre-written code that works out of the box.

    How Does Python Compare to PHP?

    Businesswoman analyzing documents in office

    The commands and syntax of Python differ from other interpreted languages. PHP is increasingly displacing Perl as the lingua franca of web development. However, more than either PHP or Perl, Python is much easier to read and to follow.

    At least one downside which PHP shares with Perl is its squirrely code. Because of the syntax of PHP and Perl, it is much harder to code programs that exceed 50 or 100 lines. Python, on the other hand, has readability hard-wired into the fabric of the language. The readability of Python makes programs easier to maintain and extend.

    While it is starting to see more general usage, PHP is at heart a web-oriented programming language designed to output web-readable information, not handle system-level tasks. This difference is exemplified by the fact that you can develop a web server in Python that understands PHP, but you cannot develop a web server in PHP that understands Python.

    Finally, Python is object-oriented. PHP is not. This has significant implications for the readability, ease of maintenance, and scalability of the programs.

    How Does Python Compare to Ruby?

    Man and woman back to back in separate booths using laptop computers

    Python is frequently compared to Ruby. Both are interpreted and therefore high level. Their code is implemented in such a way that you need not understand all the details. They are simply taken care of.

    Both are object-oriented from the ground up. Their implementation of classes and objects allow for greater reuse of code and ease of maintainability.

    Both are general purpose. They can be used for the simplest of tasks like converting text or for much more complicated matters such as controlling robots and managing major financial data systems.

    There are two major differences between the two languages: readability and flexibility. Due to its object-oriented nature, Ruby code does not err on the side of being squirrely like Perl or PHP. Instead, it errs in being so obtuse that it is often unreadable; it tends to presume upon the programmer’s intentions. One of the chief questions asked by students learning Ruby is «How does it know to do that?» With Python, this information is typically plain in the syntax. Aside from enforcing indentation for readability, Python also enforces transparency of information by not assuming too much.

    Because it does not assume, Python allows for easy variation from the standard way of doing things when needed while insisting that such variation is explicit in the code. This gives power to the programmer to do whatever is necessary while ensuring that those who read the code later can make sense of it. After programmers use Python for a few tasks, they often find it hard to use anything else.

    How Does Python Compare to Java?

    Build your website

    Both Python and Java are object-oriented languages with substantial libraries of pre-written code that can be run on almost any operating system. However, their implementations are vastly different.

    Java is neither an interpreted language nor a compiled language. It is a bit of both. When compiled, Java programs are compiled to bytecode—a Java-specific type of code. When the program is run, this bytecode is run through a Java Runtime Environment to convert it to machine code, which is readable and executable by the computer. Once compiled to bytecode, Java programs cannot be modified.

    Python programs, on the other hand, are typically compiled at the time of running, when the Python interpreter reads the program. However, they can be compiled into computer-readable machine code. Python does not use an intermediary step for platform independence. Instead, platform independence is in the implementation of the interpreter.

    Источник

    10 Python Articles you can read this weekend

    10 Python Articles you can read this weekend

    Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article.
    Hello guys, it’s been a long time, since I have shared any curated list of articles, so here I am back with another of my curated article, this time with Python, one of the most loved programming language of the world. Anyway, here is my list of some of the useful Python articles you can read this weekend —

    1. Python at Netflix by Netflix Technology Blog

    I am sure you have heard about Netflix and a good chance is that you might have even watched a couple of programs. If you are a programmer and wondering how Python is used in Netflix this article will provide you some glimpse, a perfect article for weekend reading.

    2. 10 Simple hacks to speed up your Data Analysis in Python by Parul Pandey

    Python Programming language is an amazing tool for analyzing data but it can be even sweeter if you know some simple hacks. This article will teach you how to make your Data Analysis with Python a breeze. Tips and Tricks, especially in the programming world, can be very useful. Sometimes a little hack can be both time and.

    3. Best Python Courses, Tutorials, and Certifications

    If you are just starting with Python or want to learn Python this year then you should first read this article. It contains some of the best Python courses, tutorials, and certifications for both beginners and intermediate developers.

    4. 36 Amazing Python Open Source Projects by Mybridge

    Contributing to a Python open-source project is a great way to not only improve your Python programming skill but also to establish your authority. If you are looking to contribute, here are some of the awesome Python open course projects. For the past year, the author has compared nearly 5,000 open source Python projects and selected the top 36.

    5. Jupyter Lab: Evolution of the Jupyter Notebook by Parul Pandey

    This article provides a nice overview of JupyterLab, the next generation of the Jupyter Notebook, one of the most popular IDE for Python programmers. Here is the link:

    6. What exactly can you do with Python? Here are Python’s 3 main applications. by YK Sugi

    If you are still on the fence about learning Python and not sure what exactly you can do with Python then this article will clear your doubt. What exactly can you do with Python? Here are Python’s 3 main applications. The most common applications of Python are web development, scripting, machine learning, and data analysis

    7. 50+ Data Structure and Algorithms Interview Questions for Programmers

    Another of my articles which contains some of the frequently asked coding problems which you can solve in Python to build your programming logic and coding sense.

    8. How to scrape websites with Python and BeautifulSoup by Justin Yek

    You would be amazed how easy it is to scrap websites and get information using Python and BeautifulSoup, perfect articles to see the potential of Python programming in the real world. There is more information on the Internet than any human can absorb in a lifetime. What you need is not access to that.

    9. 5 Free Courses to Learn Python for Beginners

    That’s all about some of the awesome Python articles you can read this weekend. If you have any other interesting article which you think Python programmers should read, feel free to share with us as responses.

    Источник

Оцените статью