Python Exercises

0/85 0 / 85 exercices

Welcome to my small collection of exercises!

Feel free to pick what pleases you in any order!

New

Hello World

Solved 40477 times.

  • Basics
New

Print 42

Solved 40111 times.

  • Basics
New

Number of seconds in a year

Solved 30895 times.

  • Basics
New

Using operators

Solved 33187 times.

  • Basics
New

Characters counting

Solved 31727 times.

  • Basics
New

Fix the indentation

Solved 22977 times.

  • Basics
New

Square numbers

Solved 24012 times.

  • Basics
New

Powers of two

Solved 26806 times.

  • Basics
New

Import

Solved 24167 times.

  • Basics
New

Comparisons

Solved 23705 times.

  • Basics
New

Counting Words

Solved 20952 times.

  • Basics
New

Fix is_anagram

Solved 10323 times.

  • Basics
New

First function

Solved 17233 times.

  • Basics
New

Print even numbers

Solved 17190 times.

  • Basics
New

Sum of even numbers <= 100

Solved 16442 times.

  • Basics
  • Training
New

Multiples of 3 and 5

Solved 14979 times.

  • Basics
  • Training
New

Temperatures

Solved 13233 times.

  • Basics
  • Realist
New

Print every two letters pairs

Solved 12152 times.

  • Basics
  • Training
New

Print every pair of distinct letters

Solved 11359 times.

  • Basics
  • Training
New

Longest word

Solved 10354 times.

  • Realist
New

Print sorbet flavors

Solved 9139 times.

  • Realist
New

Distance

Solved 8633 times.

  • Training
New

Is divisible by ?

Solved 3668 times.

  • Training
New

Check if a number is prime

Solved 6229 times.

  • Training
New

Sort students

Solved 5396 times.

  • Realist
New

Print every prime numbers in a range

Solved 4378 times.

  • Training
New

Sum of every prime number below n

Solved 4504 times.

  • Training
New

Next prime

Solved 3331 times.

  • Training
New

Display the date and time

Solved 4763 times.

  • Training
New

The missing card

Solved 2601 times.

  • Realist
New

Reverse Roman Numerals

Solved 2850 times.

  • Realist
New

Friday the 13th

Solved 1994 times.

  • Realist
New

Playing with anagrams

Solved 1407 times.

  • Realist
New

The Fibonacci sequence

Solved 2271 times.

  • Training
New

Currency

Solved 1409 times.

  • Realist
New

Sets of love

Solved 4353 times.

  • Realist
New

Perfect deck shuffle

Solved 1460 times.

  • Realist
New

Exceptions

Solved 1942 times.

  • Training
  • Command line
New

Select students

Solved 2324 times.

  • Realist
New

Flatten lists

Solved 1462 times.

  • Training
New

Print the content of a file

Solved 1717 times.

  • Training
New

Adam Number

Solved 804 times.

  • Training
New

Product of iterable

Solved 1770 times.

  • Training
New

Print battery charge

Solved 1229 times.

  • Realist
New

Draw N Squares

Solved 1093 times.

  • Realist
New

Dyck words

Solved 582 times.

  • Realist
New

Hearts emojis

Solved 929 times.

  • Realist
New

Frequency of letters in a file

Solved 1070 times.

  • Training
New

Pernicious numbers

Solved 1030 times.

  • Training
New

Count the lower 'e' in the 'words' file

Solved 1411 times.

  • Training
New

Caesar Cypher

Solved 760 times.

  • Realist
New

Print parameters

Solved 2577 times.

  • Basics
  • Command line
New

Student class

Solved 984 times.

  • Realist
New

Largest product in a series

Solved 926 times.

  • Training
New

Format your output

Solved 846 times.

  • Realist
New

Common Lines

Solved 103 times.

  • Command line
New

Doing HTTP requests

Solved 908 times.

  • Training
New

Consecutive Sum

Solved 475 times.

  • Training
New

Break a safe

Solved 773 times.

  • Realist
New

Longest Collatz sequence

Solved 950 times.

  • Training
New

Print the first parameter

Solved 1868 times.

  • Basics
  • Command line
New

Simple adder

Solved 1780 times.

  • Training
  • Command line
New

Roman Numerals

Solved 617 times.

  • Realist
New

Text framing

Solved 532 times.

  • Realist
New

Calculator

Solved 711 times.

  • Realist
  • Command line
New

Lambda expressions

Solved 770 times.

  • Training
New

Largest product in a grid

Solved 555 times.

  • Training
New

Password Generator

Solved 618 times.

  • Realist
New

Side by side

Solved 451 times.

  • Realist
New

Change for 42€

Solved 298 times.

  • Realist
New

Temperature class

Solved 470 times.

  • Realist
New

Pascal's triangle

Solved 405 times.

  • Training
New

Magic Square

Solved 77 times.

  • Realist
New

Restaurant menu

Solved 271 times.

  • Realist
New

CSV and Python

Solved 329 times.

  • Training
New

Sequence Mining

Solved 209 times.

  • Realist
New

Abelian sandpiles

Solved 241 times.

  • Realist
  • Numpy
New

Elementary cellular automaton

Solved 213 times.

  • Realist
New

bencode, bdecode

Solved 220 times.

  • Realist
New

Fir tree

Solved 182 times.

  • Realist
  • Command line
New

IRC logs as CSV

Solved 135 times.

  • Realist
New

Py Master Mind

Solved 298 times.

  • Realist
New

Dirichlet solver

Solved 108 times.

  • Numpy
New

Make your own 2048 in Python!

Solved 147 times.

  • Numpy
New

Need more exercises ?

Solved 17 times.

  • Realist