Your First Program and print

Your first Python program: print, outputting text and calculations.

Python is the friendliest language to start with: no extra boilerplate, the first program fits on one line. The print function outputs whatever you pass to it. Press "Run" and look at the result.
Python

Your first Python program

print can output not just text but also the results of calculations — even several values at once, separated by commas (a space is inserted between them automatically). Text goes in quotes, calculations go without quotes. Compare: print("2 + 2") prints literally "2 + 2", while print(2 + 2) prints the number 4.
Python

Text and calculations in a single print

Task: print three lines — your name, your city, and the result of 7 * 6. Each value with its own print. Once it works, mark the lesson as completed and move on to variables.
Доска