Question du test Python

Écrire une fonction Python qui prend 4 arguments et les affiche dans la console.

Intermédiaire

Quel sera le résultat du code suivant ?

def my_func(a, b, c, d):
    print(a, b, c, d)

args = (1, 2)
kwargs = {'c': 3, 'd': 4}
my_func(*args, **kwargs)
Auteur: Amani BEN HADJ BRAIEKStatut : PubliéeQuestion passée 3 fois
Modifier
0
Évaluations de la communauté
developer avatar
Manuvai
25/06/2024
Hi @Amani, could you please edit the french translation of the question ? I assume the first line was cut before the code section's definition. Thanks in advance
developer avatar
Amani BEN HADJ BRAIEK
26/06/2024
Hi @Manuvai, I just edited as mentionned. BR