Ibuprofeno.py💊| #61: Explica este código Python

Rmag Breaking News

Explica este código Python

Dificultad: Básico

## Reto #61
keys = xyz
my_dict = {}

for index, value in enumerate(keys, start=1):
my_dict[index] = value

print(my_dict)

👉 A. {1: ‘xyz’, 2: ‘xyz’, 3: ‘xyz’}
👉 B. {x: ‘1’, y: ‘2’, z: ‘3’}
👉 C. {1: ‘x’, 2: ‘y’, 3: ‘z’}
👉 D. {0: ‘x’, 1: ‘y’, 2: ‘z’}

Respuesta en el primer comentario.

Leave a Reply

Your email address will not be published. Required fields are marked *