Skip to content

3 challenges. Dictionaries, sets and tuples - #4

Open
MartaGDC wants to merge 2 commits into
Ironhack-data-bcn-oct-2023:mainfrom
Lab-Ironhack:main
Open

3 challenges. Dictionaries, sets and tuples#4
MartaGDC wants to merge 2 commits into
Ironhack-data-bcn-oct-2023:mainfrom
Lab-Ironhack:main

Conversation

@MartaGDC

Copy link
Copy Markdown

No description provided.

@bripollc

Copy link
Copy Markdown

Hola Marta,

Felicidades!!!!!!!!! Tengo poco que decirte porque has hecho un muy buen segundo lab:)

Challenge 1: todo correcto, está perfecto!

Challenge 2: idem, buen trabajo.
Lo único:

  1. Using the pop method, remove the first element from set1.
set1_list = list(set1)
set1_list.pop(0)
set1_list_pop = set(set1_list)  # And we convert it back to a set
print(set1_list_pop)

The pop method removes an element randomly, thus we could convert it to list to pop the first element.

Challenge 3 todo correcto, está perfecto!

sigue así!!!!! 🚀

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