LinkedIn Python Skill Assessment Quiz Answers

What does this function print?

Latest Update on 25th January, 2022 by Certification Course Answers

What does this function print?

def print_alpha_nums(abc_list, num_list):
    for char in abc_list:
        for num in num_list:
            print(char, num)
    return

print_alpha_nums(['a', 'b', 'c'], [1, 2, 3])
a 1
a 2
a 3
b 1
b 2
b 3
c 1
c 2
c 3
['a', 'b', 'c'], [1, 2, 3]
aaa
bbb
ccc
111
222
333
a 1 2 3
b 1 2 3
c 1 2 3

Correct Answer:

a 1
a 2
a 3
b 1
b 2
b 3
c 1
c 2
c 3

Latest Updates

No posts found in this category.