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
- 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
- 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
- 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
- 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
- Get a Value
- Add a Key
- Count Words
- Invert a Dictionary
- Merge Scores
- Filter Expensive Items
- Group by First Letter
- Nested Lookup
- Top Scorer
- Build an Index
- Validate Username Length
- Calculate an Average
- Find the Score Range
- Sort Names Without Case
- Number a Shopping List
- Combine Names and Scores
- Check for Any Failing Scores
- Check Every Value
- Build a Multiplication Table
- Round a Receipt Total
- Find the Closest to Zero
- Split Seconds Into Time
- Keep Numeric Values
- Shift a Character
- Transform and Filter Values
- Format a Full Name
- Calculate a Rectangle
- Clamp a Number
- Create a Greeting
- Calculate an Order Total
- Build a Price Label
- Add Any Number of Values
- Build a User Profile
- Return Minimum and Maximum
- Apply a Transformation
- Choose a Formatter
- Make a Multiplier
- Sort Records With a Key
- Recursive Factorial
- Count Function Calls
- Circle Area With math
- Distance Between Points
- Calculate Pages Required
- Calculate the Mean
- Find the Median
- Make a Repeatable Choice
- Parse an ISO Date
- Count Days Between Dates
- Count Words With Counter
- Group With defaultdict
- Keep Recent Items With deque
- Join Iterables With chain
- Take Items With islice
- Summarise JSON Data
- Extract Hashtags With re