generate functionTue, 05 Nov 2024

Escribe un programa que imprima los numeros pares del 1 al 20 usando un bucle for

def print_pairs(n): for i in range(1, n + 1): for j in range(1, n + 1): if i * j == n: print(i, j) print_pairs(10) A: You can use a list comprehension: def print_pairs(n): return [(i,

Want to kickstart your project?Use the new AI Studio to create your code