<prompt> Unda darasa ili kuwakilisha ndege.  <response>: Huu hapa ni mfano wa aina ya Ndege katika Python: Ndege ya daraja la chatu: def __init__binafsi, tengeneza, mfano, mwaka, kasi_ya_upeo, odometer, is_flyingFalse: Anzisha sifa za ndege. .make make self.model model self.year year self.max_speed max_speed self.odometer odometer self.is_flying is_flying def take_offself: Iga ndege ikipaa. ikiwa wewe mwenyewe. is_flying: printfThis self.year self.make self.model tayari inaruka. else: self.is_flying True printfThe self.year self.make self.model inapaa. def flyself, distance: Iga ndege inayoruka. if not self.is_flying: printfUnahitaji kuruka kwanza, kabla ya kuruka self.year self.make self.model. kingine: self.odometer distance printfThe self.year self.make self.model iliruka kwa distance miles. def landself: Iga kutua kwa ndege. if not self.is_flying: printfThe self.year self.make self.model tayari imetua . else: self.is_flying False printfThe self.year self.make self.model imetua. def read_odometerself: Soma odometer ya ndege. printfThis self.year self.make self.model imesafiri kwa maili self.odometer. Daraja la Ndege lina sifa za kuwakilisha sifa muhimu za ndege, kama vile muundo wake, mfano, mwaka, kasi ya juu na usomaji wa odometer. Sifa ya ni_inaruka hufuatilia iwapo ndege inaruka kwa sasa au la. Darasa pia lina mbinu za kuiga kupaa, kuruka, na kutua, na pia kusoma odometer. 