Module 3: Input, Output & String Formatting
Learn to interact with users and format output beautifully
Learning Objectives
By the end of this module, you will be able to:
- Use
print()with multiple arguments,sep, andendparameters - Get user input with
input()and convert it to the appropriate data type - Format strings using f-strings and the
.format()method - Control number formatting (decimal places, alignment, padding)
- Build strings using concatenation and repetition
- Create interactive programs that communicate with the user
Lessons
1
The print() Function
Master Python's print function with multiple arguments, the sep and end parameters, and techniques for printing multiple lines.
~30 minutes2
Getting User Input
Learn to use input() to get data from users, convert input to the right type, and build interactive programs.
~30 minutes3
f-strings and .format()
Discover modern string formatting with f-strings, format numbers beautifully, and control text alignment.
~35 minutes4
String Concatenation and Repetition
Build strings dynamically using the + and * operators, and learn patterns for constructing formatted output.
~25 minutes