logo

Crowdly

Browser

Add to Chrome

24-In222-Pratique de la programmation en Python 2

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 + d

class Car(Vehicle):

    def __init__(self):

        super().__init__()

    def drive(self, d):

        self.km = self.km + d * 4

class Truck(Car):

    def __init__(self):

        super().__init__()

    def drive(self, d):

        self.km = self.km + d * 3

v1 = Truck()

v2 = Car()

v1.drive(10) 

v2.drive(10) 

print(v1.km)

print(v2.km)
0%
0%
0%
0%
0%
View this question

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")
View this question

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')
100%
0%
0%
0%
View this question
View this question

Want instant access to all verified answers on moodle.ipsa.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome