Skip to content

[Felix] lab-list-comprehension #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

imfap1
Copy link

@imfap1 imfap1 commented Oct 11, 2023

No description provided.

@bripollc
Copy link

Hola Felix,

Muy muy buen lab! Felicitades ✨ Nada a decirte, es todo correcto!!! Te solo dejo un pequeño despiste:

  • Use a list comprehension to create and print a list containing all elements of the 10 x 4 array below.
new_list = [j for i in a for j in i]
print(new_list)

No sé si lo dejaste a medias pero casi lo tenías!!! Solo te falta una j delante del primer for :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants