FizzBuzz, precisely
Return a newline-separated string for 1..n: Fizz, Buzz, FizzBuzz, or the number.
Hello, name!
Implement a function that returns a personalized greeting for a given name.
Minutes to Hours: Time Conversion Helper
Write a function that converts minutes into a human-readable 'Xh Ym' string, with special cases for zero and whole hours.
Countdown printer
Implement a function that prints a countdown from a given number down to 1, then returns 'Go!'.
Print Pyramid Pattern
Implement a function that returns a centered asterisk pyramid as a list of strings.
Count word occurrences
Write a function that takes a sentence and returns a dictionary of word counts.
Pathlib Operations: File Path Basics
Practice using pathlib to manipulate file paths and extract components.
Validate date format
Return True if input string is exactly YYYY-MM-DD and a real calendar date.
Palindromic Number Check
Write a function to check if a given integer is a palindrome.
Showing 9 challenges · Python Basics
Python Basics — Python coding challenges
What you will find here
This page lists python basics challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.