Python foundations and values
Start with expressions, assignment, input, and output. Python's indentation groups statements into blocks. Choose names that describe data, and use built-in types before inventing complex structures.
View key idea and practice
A Python program is a sequence of statements evaluated by the interpreter. A variable name refers to a value such as an integer, string, Boolean, or collection.
Worked exampleA temperature converter reads a Celsius value, computes `(celsius * 9 / 5) + 32`, and prints a labeled Fahrenheit result.
Try itWrite a short script that asks for a name and a temperature, then prints a friendly message with the converted value.
Suggested checkUse `input()` for text, convert the numeric input with `float()`, calculate the Fahrenheit value, then format it in an f-string. Keep the name as a string.