Interactive Python Coding Exercises
Practice Python online with interactive coding exercises, instant feedback, and guided challenges for beginners.
- Reverse a String
- Count Characters in a String
- Count a Specific Letter in a String
- Count Numbers in a String
- Convert String to Uppercase
- Convert String to Lowercase
- Check if String Contains a Word
- Replace a Character in a String
- Remove Spaces from a String
- Check if String is a Palindrome
- Add Two Numbers
- Convert String to Integer
- Convert String to Float
- Calculate Rectangle Area
- Use Order of Operations
- Split Minutes into Hours and Minutes
- Find the Remainder
- Calculate a Percentage
- Average Three Numbers
- Square a Number
- Check Adult Age
- Can Login
- Number in Range
- Check Empty Text
- Needs Review
- Check Even Number
- Can Vote
- Number Outside Range
- Exactly One Choice
- Can Access Course
- Classify a Number
- Choose Even or Odd
- Return the Smaller Number
- Convert a Score to a Grade
- Calculate a Ticket Price
- Recognise a Leap Year
- Rate a Password
- Calculate Shipping
- Find the Largest of Three
- Classify a Triangle
- Return a FizzBuzz Value
- Choose a Discount Rate
- Divide Safely With a Condition
- Validate a Username
- Decide an Access Level
- Total Numbers
- Count Long Words
- Build Initials
- Keep Even Numbers
- Find First Match
- Multiply Numbers
- Find Largest Number
- Count Vowels
- Find Matching Positions
- Build Numbered Labels
- Build Values With range
- Count Down With range
- Step Through a Range
- Select Even Positions
- Build a Square Table
- Stop at a Sentinel
- Find the First Even Number
- Stop Before a Total Limit
- Find the First Long Word
- Count Attempts Until Success
- Skip Negative Numbers
- Skip Blank Text
- Keep Odd Numbers
- Skip Multiples
- Keep Valid Scores
- Build Coordinate Pairs
- Build a Multiplication Grid
- Flatten a Grid
- Count a Value in a Grid
- Find Positions in a Grid
- Countdown
- Double Until Limit
- Count Password Attempts
- Count Digits
- Remove Leading Zeros
- Count Up by Steps
- Repeat Text
- Take Items Until Stop
- Sum Digits
- Reverse a Number
- Safe Integer Conversion
- Safe Division
- Get Item Safely
- Parse Price
- Require Positive Number
- Catch Multiple Error Types
- Use Else After Conversion
- Always Record an Attempt
- Handle Errors Separately
- Translate a Conversion Error
- Get the First Item
- Get the Last Item
- Double Each Number
- Keep Positive Numbers
- Sum a List
- Find the Longest Word
- Remove Duplicates
- Flatten One Level
- Rotate a List Left
- Split a List Into Chunks
- Append a Task
- Extend a Playlist
- Insert a Priority Item
- Remove the First Match
- Take the Last Item
- Clear Completed Tasks
- Find a Starting Position
- Count a Vote
- Sort Scores In Place
- Reverse a Route
- Copy a Shopping Basket
- Build a Guest List
- Sort Words by Length
- Move an Item
- Normalise a Reading List
- Make a Coordinate
- Swap a Pair
- Get Initials
- Add Tuple Values
- Find the Highest Score
- Convert Pairs to Labels
- Count Matching Tuples
- Unpack Full Name
- Find Bounding Box
- Group Consecutive Pairs
- Make a Set
- Has Tag
- Unique Count
- Find Shared Items
- Find Missing Required Items
- Combine Tags
- Symmetric Difference
- Remove Banned Words
- All Unique
- Group Common and Different