Vai al contenuto principale
🔒 Modalità anteprima. Le prime quindici lezioni di Foundations sono gratuite; questa è Pro. Avvia un trial di 7 giorni per sbloccare l'editor, i suggerimenti AI e il resto del programma. Carta richiesta, disdici in qualsiasi momento dalla Dashboard.Avvia trial di 7 giorni →
⚡
← Corsi›Python FoundationsModulo 7 · Libreria standard avanzata›

@property: attributi calcolati

write151 / 174
+100 XP
Compito🌐 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.
✏️ Scrivi il tuo codice qui
🐍
Caricamento Python...
Download una tantum (~1 MB). Poi è istantaneo.
📊 Risultato
Premi Esegui per vedere il risultato...