Skip to content

[Pere Martin] Challenges data types - #11

Open
perikoloso wants to merge 1 commit into
Ironhack-data-bcn-oct-2023:mainfrom
perikoloso:main
Open

perikoloso wants to merge 1 commit into
Ironhack-data-bcn-oct-2023:mainfrom
perikoloso:main

Conversation

@perikoloso

Copy link
Copy Markdown

No description provided.

@bripollc

bripollc commented Oct 11, 2023

Copy link
Copy Markdown

Hola Pere,

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: impecable.

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