Sezione 1. Capitolo 4
single
Challenge: Using init and self in Classes
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
- Define a class called
Book. - The class should have an
__init__method that takes three parameters:self,title, andauthor. - Initialize the
titleandauthorattributes usingself.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 4
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione