Looking for 24-In222-Pratique de la programmation en Python 2 test answers and solutions? Browse our comprehensive collection of verified answers for 24-In222-Pratique de la programmation en Python 2 at moodle.ipsa.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Quel affichage produit le code suivant ?
class Vehicle: def __init__(self): self.km = 0 def drive(self, d): self.km = self.km + dclass Car(Vehicle): def __init__(self): super().__init__() def drive(self, d): self.km = self.km + d * 4class Truck(Car): def __init__(self): super().__init__() def drive(self, d): self.km = self.km + d * 3v1 = Truck()v2 = Car() v1.drive(10) v2.drive(10) print(v1.km) print(v2.km)Quelle affichage produit le code python suivant?
L = [1, 4, 5]try: b = L[3] print(b)except TypeError: print("Error1")except IndexError: print("Error2")Qu'affiche le code python suivant?
def chat_app(text): match text: case 'Hello!': print('Hi') case 'How are you?': print('Great') case _: print('Goodbye')chat_app('Hello!')chat_app('How are you')Indiquez le type et la valeur des variables suivantes :
L = [2, '4', (5, 2.3), {1:True}]
a = L[0]
b = L[1]
c = L[2][1]
d = L[3][1]
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!