About 50 results
Open links in new tab
  1. Practice Python

    Welcome to Practice Python! There are over 40 beginner Python exercises just waiting to be solved. Each exercise comes with a small discussion of a topic and a corresponding post with a solution. …

  2. Exercises and Solutions - Practice Python

    All Exercises 1: Character Input 2: Odd Or Even 3: List Less Than Ten 4: Divisors 5: List Overlap 6: String Lists 7: List Comprehensions 8: Rock Paper Scissors 9: Guessing Game One 10: List Overlap …

  3. Resources for Learning Python and Programming - Practice Python

    Jan 15, 2017 · The style is easy to read, and covers all the major areas of Python development and programming lifecycles. The code examples are helpful and informative as well.

  4. 02 Odd Or Even - Practice Python

    Feb 5, 2014 · A fundamental thing you want to do with your program is check whether some number is equal to another. Say the user tells you how many questions they answered incorrectly on a practice …

  5. 40 Error Checking - Practice Python

    Jul 17, 2022 · The official Python documentation has a section about handing exceptions that goes into detail about what exceptions are and how to extend them, for more detailed reading.

  6. 21 Write To A File - Practice Python

    Nov 30, 2014 · For playing around with Python, this is not usually a problem, but why not learn how to program correctly the first time? The write() portion is simple - call .write() with a string (if something …

  7. 29 Tic Tac Toe Game Solutions - Practice Python

    Sep 11, 2016 · This is a different way of coding than coding an entire program from scratch, and can often save a lot of time. For my solution, I decided to copy all the functions from the older exercises …

  8. 29 Tic Tac Toe Game - Practice Python

    Aug 3, 2016 · Your challenge in this exercise is to use the functions from those previous exercises all together in the same program to make a two-player game that you can play with a friend.

  9. 13 Fibonacci - Practice Python

    Apr 30, 2014 · Write a program that asks the user how many Fibonnaci numbers to generate and then generates them. Take this opportunity to think about how you can use functions.

  10. 01 Character Input - Practice Python

    Jan 29, 2014 · Try this in your own program with all the arithmetic operations with numbers and strings - the best way to get a feel for what works and what doesn’t is to try it!