Concept Flow - Print function for output
Start
Call print()
Evaluate arguments
Convert to string
Send to console
Output appears
End
The print function takes values, converts them to text, and shows them on the console.
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 console | "Hello, world!" | Hello, world! |
| 4 | Finish | Output complete |
| Variable | Start | After print() call | Final |
|---|
print(value) prints value to the console. It converts the value to text first. You can print strings, numbers, or variables. Output appears immediately on the screen. Use print() to check your program's progress.