Passer au contenu

Apprendre à coder — Python, Java, C, SQL & Web

Pratique Python

Défis de codage de 1★ à 5★.

python 108 Leçons

Chaque leçon s'exécute dans votre navigateur — écrivez du vrai code, appuyez sur Exécuter, et les tâches se vérifient automatiquement. Gratuit, pas de compte requis, avec des notes traduites associées à l'anglais.

Sur cet appareil : 0 sur 108 leçons terminées

Commencer le cours

Leçons dans ce cours

108 sur 108 leçons affichées

  1. Print a word 01 · 1 tâche requise · ★
  2. Print another word 02 · 1 tâche requise · ★
  3. Print a sentence 03 · 1 tâche requise · ★
  4. Print with a ! 04 · 1 tâche requise · ★
  5. Print two lines 05 · 1 tâche requise · ★
  6. Print three lines 06 · 1 tâche requise · ★
  7. Print a number 07 · 1 tâche requise · ★
  8. Print a bigger number 08 · 1 tâche requise · ★
  9. Add two numbers 09 · 1 tâche requise · ★
  10. Add bigger numbers 10 · 1 tâche requise · ★
  11. Subtract 11 · 1 tâche requise · ★
  12. Multiply 12 · 1 tâche requise · ★
  13. Divide 13 · 1 tâche requise · ★
  14. Remainder 14 · 1 tâche requise · ★
  15. Use a variable 15 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Variables
  16. A number variable 16 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Variables
  17. Change a variable 17 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Variables
  18. Add two variables 18 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Variables
  19. Multiply two variables 19 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Variables
  20. Join two words 20 · 1 tâche requise · ★
  21. Greet a name 21 · 1 tâche requise · ★
  22. Repeat text 22 · 1 tâche requise · ★
  23. Ask for a name 23 · 1 tâche requise · ★
  24. Echo a number 24 · 1 tâche requise · ★
  25. Call a function 105 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  26. Use what it gives back 106 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  27. Finish the function 107 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  28. Write one yourself 108 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  29. Your first function 25 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  30. Is it positive? 26 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  31. The bigger one 27 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  32. The last item 28 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  33. Is it even? 29 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  34. Sum a list 30 · 1 tâche requise · ★
    S'appuie sur : Bases Python · Functions
  35. Reverse a string 31 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  36. Count the vowels 32 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  37. FizzBuzz 33 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  38. Letter frequencies 34 · 1 tâche requise · ★★★
  39. Remove duplicates 35 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  40. Second largest 36 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  41. Group anagrams 37 · 1 tâche requise · ★★★★
  42. Flatten a nested list 38 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  43. Calculatrice RPN 39 · 1 tâche requise · ★★★★★
    S'appuie sur : Bases Python · Functions
  44. Encodage par suites 40 · 1 tâche requise · ★★★★★
    S'appuie sur : Bases Python · Functions
  45. Count to ten 41 · 1 tâche requise · ★★
  46. Even numbers 42 · 1 tâche requise · ★★
  47. Liftoff 43 · 1 tâche requise · ★★
  48. Star triangle 44 · 1 tâche requise · ★★
  49. The 3 times table 45 · 1 tâche requise · ★★
  50. Running total 46 · 1 tâche requise · ★★★
  51. Largest without max 47 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  52. Smallest without min 48 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  53. Count the positives 49 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  54. Average of a list 50 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  55. Add up 1 to 100 51 · 1 tâche requise · ★★
  56. Upside-down triangle 52 · 1 tâche requise · ★★
  57. FizzBuzz with 4 and 6 53 · 1 tâche requise · ★★★
  58. Until you type stop 54 · 1 tâche requise · ★★★
  59. A list of squares 55 · 1 tâche requise · ★★
  60. Count a value 56 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  61. Keep the evens 57 · 1 tâche requise · ★★
    S'appuie sur : Bases Python · Functions
  62. Find the position 58 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  63. Smallest and largest 59 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  64. Above average 60 · 1 tâche requise · ★★★
    S'appuie sur : Bases Python · Functions
  65. Binary to denary 61 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  66. Denary to binary 62 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  67. Digital root 63 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  68. Caesar cipher 64 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  69. Bank account 65 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  70. Transpose a grid 66 · 1 tâche requise · ★★★★
    S'appuie sur : Bases Python · Functions
  71. Most common word 67 · 1 tâche requise · ★★★★★
  72. Sieve of Eratosthenes 68 · 1 tâche requise · ★★★★★
    S'appuie sur : Bases Python · Functions
  73. A row of Pascal's triangle 69 · 1 tâche requise · ★★★★★
    S'appuie sur : Bases Python · Functions
  74. Tic-tac-toe winner 70 · 1 tâche requise · ★★★★★
    S'appuie sur : Bases Python · Functions
  75. Is it big? 71 · 1 tâche requise · ★
  76. Pass or fail 72 · 1 tâche requise · ★
  77. Positive, negative or zero 73 · 1 tâche requise · ★
  78. The bigger number 74 · 1 tâche requise · ★
  79. Even or odd 75 · 1 tâche requise · ★
  80. Is it in range? 76 · 1 tâche requise · ★★
  81. Free entry 77 · 1 tâche requise · ★★
  82. Grade letter 78 · 1 tâche requise · ★★
  83. Divisible by both 79 · 1 tâche requise · ★★
  84. Ticket price 80 · 1 tâche requise · ★★
  85. Finish the countdown 81 · 1 tâche requise · ★
  86. The loop that never ends 82 · 1 tâche requise · ★
  87. Count up to five 83 · 1 tâche requise · ★
  88. Add up to five 84 · 1 tâche requise · ★
  89. Double until it passes 100 85 · 1 tâche requise · ★★
  90. Stop at the first over fifty 86 · 1 tâche requise · ★★
  91. Count down in twos 87 · 1 tâche requise · ★★
  92. Until they type stop 88 · 1 tâche requise · ★★
  93. How many halvings? 89 · 1 tâche requise · ★★
  94. A row of the times table 90 · 1 tâche requise · ★★
  95. The first letter 91 · 1 tâche requise · ★
  96. The last letter 92 · 1 tâche requise · ★
  97. The first three letters 93 · 1 tâche requise · ★
  98. How long is it? 94 · 1 tâche requise · ★
  99. Shout it 95 · 1 tâche requise · ★
  100. Initials 96 · 1 tâche requise · ★★
  101. Ask for a name 97 · 1 tâche requise · ★
  102. Ask for two things 98 · 1 tâche requise · ★
  103. A number from input 99 · 1 tâche requise · ★
  104. Add two numbers you were given 100 · 1 tâche requise · ★★
  105. Each letter on its own line 101 · 1 tâche requise · ★
  106. Zero to four 102 · 1 tâche requise · ★
  107. Count the letters 103 · 1 tâche requise · ★
  108. Add up one to five 104 · 1 tâche requise · ★

Référence linguistique

/know/reference/python

Se connecter ou créer un compte

IGCSE, A-Level & AP