Python Fundamentals and Input/Output Python practice problems
Start here. Practice input(), print(), variables, numbers, formatting, and small formulas.
Core concepts
Problem-solving patterns
- Read → convert → compute → print
Reported company tags
All 20 problems in this topic
Work from top to bottom to build the concept gradually.
- #001Echo a message: Coding club announcementStarterFree preview
A coding club wants its announcement displayed exactly as entered.
- #002Echo a message: Preserve punctuationStarterFree preview
A support tool must echo a status message containing spaces and punctuation.
- #003Create a personal greeting: Welcome a learnerStarterFree preview
Generate a friendly greeting for a learner joining a Python class.
- #004Create a personal greeting: Name with spacesStarterFree preview
Greet a participant whose full name contains a space.
- #005Add two integers: Add two cart quantitiesStarterFree preview
A shop combines quantities from two small orders.
- #006Add two integers: Handle a negative adjustmentStarterPremium
A ledger combines a credit and a negative correction.
- #007Show basic arithmetic: Compare two measurementsStarterPremium
A lab assistant needs the four basic results for two readings.
- #008Show basic arithmetic: Use a negative first valueStarterPremium
Test how arithmetic behaves when the first reading is below zero.
- #009Rectangle measurements: Floor matStarterPremium
Calculate material area and border length for a rectangular floor mat.
- #010Rectangle measurements: Decimal dimensionsStarterPremium
Calculate a poster whose measurements include decimals.
- #011Convert Celsius to Fahrenheit: Weather displayStarterPremium
Convert a pleasant daytime temperature for an international weather display.
- #012Convert Celsius to Fahrenheit: Freezing referenceStarterPremium
Verify the conversion at the freezing point of water.
- #013Calculate a purchase total: Notebook orderStarterPremium
Find the cost of several notebooks sold at one unit price.
- #014Calculate a purchase total: Single premium itemStarterPremium
Calculate a one-item order while keeping two currency decimals.
- #015Convert seconds to clock time: Video durationStarterPremium
Display a video duration in hours, minutes, and seconds.
- #016Convert seconds to clock time: Short timerStarterPremium
Format a duration shorter than one minute with leading zeros.
- #017Swap two values: Swap seat labelsStarterPremium
A seating tool accidentally receives two labels in reverse order and must swap them.
- #018Swap two values: Swap signed readingsStarterPremium
Exchange two signed readings while keeping them as text tokens.
- #019Average three scores: Quiz averageStarterPremium
A student wants the mean of three quiz scores.
- #020Average three scores: Scores with decimalsStarterPremium
A trainer records assessment scores that include half points.