<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
  <siteinfo>
    <sitename>OpenCircuits</sitename>
    <dbname>oc2020</dbname>
    <base>http://www.opencircuits.com/index.php?title=Main_Page</base>
    <generator>MediaWiki 1.34.2</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Media</namespace>
      <namespace key="-1" case="first-letter">Special</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Talk</namespace>
      <namespace key="2" case="first-letter">User</namespace>
      <namespace key="3" case="first-letter">User talk</namespace>
      <namespace key="4" case="first-letter">OpenCircuits</namespace>
      <namespace key="5" case="first-letter">OpenCircuits talk</namespace>
      <namespace key="6" case="first-letter">File</namespace>
      <namespace key="7" case="first-letter">File talk</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki talk</namespace>
      <namespace key="10" case="first-letter">Template</namespace>
      <namespace key="11" case="first-letter">Template talk</namespace>
      <namespace key="12" case="first-letter">Help</namespace>
      <namespace key="13" case="first-letter">Help talk</namespace>
      <namespace key="14" case="first-letter">Category</namespace>
      <namespace key="15" case="first-letter">Category talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Python Printing</title>
    <ns>0</ns>
    <id>51914</id>
    <revision>
      <id>93586</id>
      <parentid>78809</parentid>
      <timestamp>2025-11-14T01:45:15Z</timestamp>
      <contributor>
        <username>DavidCary</username>
        <id>20</id>
      </contributor>
      <comment>update to Python3 syntax, so I don't get "SyntaxError: missing parenthesis".</comment>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text xml:space="preserve" bytes="1272">
= Overview =
Printing generally means putting words and numbers on the computer screen.  Your first program should have been "Hello World" or something similar.  One version is:
&lt;pre&gt;
print( "Hello World" )
&lt;/pre&gt;
The process can get a bit more complicated when you want to format the output in some special way ( think about the different ways that dates can be printed ) or when you want the output to go to some place other than the Python console.  Often you want to print a string, and manipulating the string is closely related to the process of printing.


== Links ==

* [https://www.freecodecamp.org/news/print-statement-in-python-how-to-print-with-example-syntax-command/ freeCodeCamp: Print Statement in Python]
* [https://openpython.org/courses/learnpython/lessons/printing-in-python/ Open Python: Printing in Python]
*'''[[https://learnpythonthehardway.org/book/ex5.html  Learn Python the Hard Way: Exercise 5: More Variables and Printing]]''' [FIXME: Broken link?]
*'''[[https://learnpythonthehardway.org/book/ex6.html  Learn Python the Hard Way: Exercise 6: Strings and Text]]'''
*'''[https://learnpythonthehardway.org/book/ex7.html Learn Python the Hard Way: Exercise 7: More Printing]'''

[[category:Python]] [[category:Python Course]] [[category:Draft]]</text>
      <sha1>2h4ges7fdjvd1wibh3uj2hia8w5dkoq</sha1>
    </revision>
  </page>
</mediawiki>
