Editing 353: Python

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 10: Line 10:
 
{{w|Python (programming language)|Python}} is a programming language designed specifically to make it easy to write clear, readable programs. Flying is often used as a metaphor for freedom and ease, and here Randall shows Cueball literally flying in response to using Python.
 
{{w|Python (programming language)|Python}} is a programming language designed specifically to make it easy to write clear, readable programs. Flying is often used as a metaphor for freedom and ease, and here Randall shows Cueball literally flying in response to using Python.
  
A {{w|"Hello, World!" program}} is a very simple program that prints the phrase "Hello, World!", used in textbooks to illustrate a given programming language. While this sounds simple, it can be nontrivial in some programming languages where you need to explicitly import a library that contains the <code>print</code> function (for instance, in C you need to begin with <code>#include <{{w|stdio.h}}></code>) or do complicated things with classes and variables (see [https://en.wikibooks.org/wiki/Computer_Programming/Hello_world#Java the Java "Hello, World!"] for one example). Python doesn't need any of that: <code>print("Hello, world!")</code> (or in Python 2, <code>print "Hello, world!"</code>) really is all you need to do.
+
A {{w|"Hello, World!" program}} is a very simple program that prints the phrase "Hello, World!", used in textbooks to illustrate a given programming language. While this sounds simple, it can be nontrivial in some programming languages where you need to explicitly import a library that contains the <code>print</code> function (for instance, in C you need to begin with <code>#include <{{w|stdio.h}}></code>) or do complicated things with classes and variables (see [https://en.wikibooks.org/wiki/Computer_Programming/Hello_world#Java the Java "Hello, World!"] for one example). Python doesn't need any of that: <code>print "Hello, world!"</code> (or in Python 3.0, <code>print("Hello, world!")</code>) really is all you need to do.
  
 
{{w|Dynamic typing}} and {{w|significant whitespace}} are two controversial features of Python, which make some people—like Cueball's friend—hesitant to use the language.
 
{{w|Dynamic typing}} and {{w|significant whitespace}} are two controversial features of Python, which make some people—like Cueball's friend—hesitant to use the language.

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)