Aller au contenu principal
🔒 Mode aperçu. Les quinze premières leçons Foundations sont gratuites ; celle-ci est Pro. Démarrez un trial de 7 jours pour débloquer l'éditeur, les conseils AI et le reste du programme. Carte requise, annulez à tout moment dans Dashboard.Démarrer le trial de 7 jours →
← CoursPython FoundationsModule 7 · Bibliothèque standard avancée@property — attributs calculéswrite151 / 174
+100 XP
Tâche🌐 shown in EN
📝 **Question:** Class \`Rectangle\` with \`w\` and \`h\`. Add property \`area\` that returns \`w*h\`. Print area of Rectangle(3, 4).\nExpected: 12 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ Écris ton code ici
🐍
Chargement de Python...
Téléchargement unique (~1 Mo). Ensuite, c’est instantané.
📊 Résultat
Cliquez sur Exécuter pour voir le résultat...