Question from the Python test

Write a Python function that takes 4 arguments and prints them in the console.

Medium

What will be the output of the following code?

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

args = (1, 2)
kwargs = {'c': 3, 'd': 4}
my_func(*args, **kwargs)

Author: Amani BEN HADJ BRAIEKStatus: PublishedQuestion passed 73 times
Edit
0
Community Evaluations
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