Keep the useful bits, human.
Beginner field notes
- In this Python 3 example, source code is text the interpreter reads according to Python’s rules. Saving that text does not execute it.
- Executing print("Hello, human!") displays Hello, human!; the quotation marks identify the string in the source and are not printed around it.
- The >>> marker in Python tutorials is an interactive prompt. Save the code after it, not the marker, in a source file.
See a worked example
Predict a line of Python
One reviewed sample, shared across levels. Nothing here runs on your computer.
Example review recorded 2026-10-07 · version 1.
print("Hello, human!")Hello, human!This is the expected output when Python executes the line. Displaying or saving the source alone does not execute it. print also writes a final newline.
Sources for this sampleVisual
The reviewed description and complete diagram source are available here.
More of this diagram is available inside its frame. Focus the frame and use the arrow keys to pan.
Read the complete diagram source
This is the source for the reviewed diagram, not a command to run.
flowchart LR
S["Source: print() call"] --> P["Python interpreter"]
P --> O["Output: Hello, human!"] Full explanation and primary sources
Reviewed explanation
In a text-based language such as Python, source code is text written using the language’s rules. A saved source file is not the same thing as a running program. A language tool must process it. Different languages use different execution steps; this small example uses Python 3 and does not claim that every language runs the same way.
The line print("Hello, human!") asks Python to display a string. The quotation marks identify the string in the source. They are not part of the displayed greeting. Keep ordinary straight quotation marks when typing this example; a word processor can substitute characters that are not the intended Python syntax.
You may see >>> at the start of examples in the Python interactive interpreter. That is the interpreter’s prompt, not a line to add to hello.py. For the source file in this example, save only the print() call. The next lesson connects that saved file to a command that runs it.
Source collection
- Python 3.13: Lexical analysis
Used in: Quick notes
Unicode decoding, UTF-8/default and declared source encoding, lexical tokens, comments, physical/logical lines, indentation, identifier normalization and raw-string constraints.
- Python 3.13: Command line and environment
Used in: Quick notes
Script and module execution, whole-input parsing, script arguments, import-path initialization, -I, -P, -u and -v options.
- Python 3.13: An Informal Introduction to Python
Used in: Quick notes · Worked example · Lesson text
Input and output prompt conventions, strings, print output and escape sequences.
Python strings, print output, and the distinction between interactive prompts and the text entered after them.
- Python 3.13: Using the Python Interpreter
Used in: Worked example · Lesson text
The interpreter can read and execute a script from a supplied filename.
Notes AI source review · 2026-10-17
AI source comparison recorded 2026-10-07. Human learner validation is pending.
Quick quiz · one question
Predict the string, not the source spelling
Sample scenario. Synthetic file containing only the shown print call with a simple literal string. Python 3 is available. Every listed output line ends with a newline. No interactive prompt is part of the source.
- Saved Python 3 source
print("Hello, patient human!")- Action
An available Python 3 interpreter reads this saved file.
When Python 3 reads this saved one-line file, which line is displayed?
Why this answer?
Answers stay on this device.
Sources and exercise scope
- Python 3.13: An Informal Introduction to Python
print displays a string without its enclosing source quotation marks; interactive prompts are distinct from entered source.
- Python 3.13: Using the Python Interpreter
Interpreter command discovery depends on the installation; a supplied filename identifies the script read by the interpreter.
Original synthetic exercise. AI comparison against primary documentation recorded on 2026-10-08; the references above state their scope. Human learner validation has not been run. A result here records this attempt; it does not establish mastery.
Follow this learning pathLesson 4 of 8
From project files to a small program
Save or adjust this lesson
Make this lesson yours
Save it for later, or tell your robot what would help.
This correction stays on this browser. Browse all concepts if the topic is missing.
Familiarity is your own assessment. To use it in your coding tool, download your updated learning profile.
Familiarity and lesson feedback are saved on this browser. They do not sync to your account or coding tool.