← All posts
postMay 8, 2026
Python print() and variables
#python#basics#data-engineering
python
name = "Joshua"
records = 1500
print(name)
print(records)
print(f"{name} processed {records} rows")Every Python program starts with printing something to the screen. The print() function writes a value to standard output. It is the fastest way to verify your code is doing what you expect.
Variables hold values between lines. You assign with = and reuse the name later. Python figures out the type automatically. In data engineering, print() is your first debugging tool, and variables hold intermediate results like row counts, file paths, and timestamps.