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
- Trim Outer Whitespace
- Get First and Last Characters
- Count Words
- Make a Name Tag
- Check a File Extension
- Find a Word Position
- Capitalise a First Name
- Join Two Words
- Mask the Final Four Digits
- Check a Case-Insensitive Prefix
- 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
- Calculate a Circle Perimeter
- Convert Celsius to Fahrenheit
- Convert Hours to Seconds
- Calculate a Discounted Price
- Calculate a Tip
- Find the Difference
- Round to Two Decimal Places
- Split Seconds into Minutes
- Calculate a Cube
- Convert Kilometres to Miles
- 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
- Is a Teenager
- Has Enough Balance
- Is Weekend
- Contains a Keyword
- Can Enter Event
- Is a Multiple of Five
- Is a Valid Percentage
- Has Both Permissions
- Is a Non-Empty Name
- Can Receive Discount
- 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
- Choose a Weather Message
- Classify a Temperature
- Choose a Greeting
- Calculate Parking Cost
- Choose a Delivery Method
- Check a Quiz Result
- Describe a Battery Level
- Choose a Cinema Price
- Validate a Month Number
- Classify a Password Length
- 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
- Parse an Optional Age
- Divide with a Fallback
- Read a Score Safely
- Parse Two Integers
- Look Up a Setting Safely