Python Syntax Practice
Sharpen your Python skills with 50 hands-on practice exercises designed for learners who already know the basics and want to build confidence through repetition and problem-solving.
About this course
Python Practice Exercises is a laid-back, hands-on course for learners who already understand basic Python syntax and want to improve through practice. Instead of introducing the language from scratch, this course focuses on applying what you already know through around 50 carefully selected exercises. You'll work through practical problems covering variables, conditionals, loops, functions, lists, dictionaries, strings, and other core Python concepts. The goal is to help you strengthen your logic, improve problem-solving, and become more comfortable writing Python code on your own. With short challenges, clear progression, and plenty of repetition, this course is ideal for anyone who has learned the basics but still needs more practice before moving into bigger projects or advanced topics. What it does not cover intentionally: Complex algorithms solving space and time complexity challenges.The course is intended to keep you to keep fresh on Python syntax and structures available and NOT to solve coding complex coding challenges that require advanced algorithms.
What you will learn
Getting Started with Practice and Numbers
- Number Guessing GameFree
- Summing NumbersFree
- Run Timing and Floating-Point ConversionsFree
- Hexadecimal OutputFree
Strings and Text Manipulation
- Pig Latin TranslationFree
- Ubbi Dubbi TranslationFree
- Sorting a StringFree
Lists and Tuples
- First and Last Sequence ElementsFree
- Summing AnythingFree
- Alphabetizing and Sorting RecordsFree
- Word with Most Repeated LettersFree
- Printing Tuple RecordsFree
Dictionaries and Sets
- Restaurant Ordering SystemFree
- Rainfall AccumulatorFree
- Dictionary DifferencesFree
- Counting Unique NumbersFree
Files and Data Persistence
- Reading Final Lines
- Parsing Passwd Files into Dictionaries
- Comprehensive File Word Count
- Longest Word per File
- Reading and Writing CSV Files
- Processing JSON Test Scores
- Reversing Lines in Files
Advanced Functions and Scoping
- XML Generator with Keyword Arguments
- Variable Scoping and Closures
- Prefix Notation Calculator
Comprehensions and Functional Techniques
- Joining Numbers with Comprehensions
- Summing Numbers from Strings
- Flattening Lists
- Flipped Dictionaries and Transformations
- Supervocalic Words and Gematria
Modules and Packages
- Sales Tax Calculator Module
- Modular Menu System
Object-Oriented Programming
- Introduction to Objects and Classes
- Ice Cream Bowls and Composition
- Bowl Limits and Class Attributes
- Inheritance and Specialized Bowls
- Flexible Dictionaries and Built-in Subclassing
- Animal Hierarchies and Zoos
Iterators and Generators
- Python's Iteration Protocol
- Custom Enumerate Iterators
- Circle Iterators
- Generator Functions and Chaining