Concept Flow - print() function basics
Start
Call print()
Evaluate arguments
Convert to string
Send to output (screen)
End
The print() function takes inputs, converts them to text, and shows them on the screen.
print("Hello, world!")
| Step | Action | Input | Output |
|---|---|---|---|
| 1 | Call print() | "Hello, world!" | Prepare to print |
| 2 | Evaluate argument | "Hello, world!" | "Hello, world!" as string |
| 3 | Send to output | "Hello, world!" | Hello, world! displayed on screen |
| 4 | End | - | - |
| Variable | Start | After print() call | Final |
|---|---|---|---|
| argument | None | None | None (print does not store) |
print() function basics: - Use print() to show text or values on screen - Arguments are converted to strings automatically - print() does not save or return values - Syntax: print(value1, value2, ...) - Each call outputs on a new line by default