Défis de code : Learning-path

Entraînez-vous sur Learning-path avec 40 défis de code, du plus facile au plus difficile. Chaque défi s'exécute dans le navigateur, avec des tests instantanés, une revue de votre code par l'IA et des solutions de la communauté à comparer.

Facile · 35 Moyen · 5

Compétences travaillées: ListesComptageListes 2DArithmétiqueConstruire des chaînesFormulesAccumulateursBoucles forBoucles imbriquéesBoucles whileBoucles à reboursCas de base
  • Python · C++ · C#
  • Tests automatisés
  • Relecture IA
  • Solutions de la communauté
226
Défis
2
Solutions partagées
3
Langages

Tous les défis

Recherchez par sujet, langage ou difficulté.

40 défis
Facile

Password Rules Check

Check a password against simple strength rules.

Vous apprendrez ValidationDrapeaux booléens
BeginnerConditionsLearning-pathStrings
Aucune solution pour l’instant
Facile

Every Other Character

Keep the characters at even positions.

Vous apprendrez Indices de chaînePas
BeginnerLearning-pathStrings
Aucune solution pour l’instant
Facile

Sum of Odd Numbers

Add every odd number up to a limit.

Vous apprendrez Boucles forAccumulateurs
BeginnerLearning-pathLoops
Aucune solution pour l’instant
Facile

Power by Repeated Multiplication

Raise a number to a power with a loop.

Vous apprendrez Produit cumuléExposant zéro
BeginnerLearning-pathLoops
Aucune solution pour l’instant
Facile

Body Mass Index

Compute BMI from weight and height.

Vous apprendrez FormulesVirgule flottante
BeginnerLearning-pathVariables
Aucune solution pour l’instant
Facile

Note en lettre

Transformez un score de test en note en lettre.

Vous apprendrez Chaînes if/elifIntervalles
BeginnerConditionsLearning-path
Aucune solution pour l’instant
Facile

Multiplication Table Row

List the first multiples of a number.

Vous apprendrez MultiplesConstruire des listes
BeginnerLearning-pathLoops
Aucune solution pour l’instant
Facile

Row Sums

Add up every row of a grid.

Vous apprendrez Listes 2DBoucles imbriquées
BeginnerGridsLearning-path
Aucune solution pour l’instant
Facile

Swap First and Last

Exchange the first and last items of a list.

Vous apprendrez Indices de listeÉchange
ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Absolute Value Without abs

Compute an absolute value with a condition.

Vous apprendrez NégationSans fonctions intégrées
BeginnerConditionsLearning-path
Aucune solution pour l’instant
Facile

First Negative Index

Find where the first negative number appears.

Vous apprendrez Recherche linéaireRetour anticipé
ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Compte à rebours jusqu'au décollage

Comptez à rebours à partir d'un nombre et terminez par Liftoff!

Vous apprendrez Boucles à reboursListes
BeginnerLearning-pathLoops
Aucune solution pour l’instant
Facile

Point Quadrant

Find which quadrant a point lies in.

Vous apprendrez CoordonnéesTests de signe
BeginnerConditionsLearning-path
Aucune solution pour l’instant
Facile

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

Vous apprendrez Tranches d'âgeValeurs limites
BeginnerConditionsLearning-path
Aucune solution pour l’instant
Facile

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

Vous apprendrez ListesRègles de remise
ArraysBeginnerFunctionsLearning-path
Aucune solution pour l’instant
Facile

Largest of Three

Pick the largest of three numbers without a built-in max.

Vous apprendrez ComparaisonsCombiner des conditions
BeginnerConditionsLearning-path
Aucune solution pour l’instant
Facile

Initials From a Name

Build uppercase initials from a full name.

Vous apprendrez Découpage de chaînesMajuscules
BeginnerLearning-pathStrings
Aucune solution pour l’instant
Facile

Count Positive Numbers

Count the values greater than zero in a list.

Vous apprendrez ListesComptage
ArraysBeginnerLearning-path
Aucune solution pour l’instant