Skip to content

Completed the dict-sets-tuple lab - #10

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

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

Conversation

@patriciazapatab

Copy link
Copy Markdown

No description provided.

@bripollc

Copy link
Copy Markdown

Hola Patricia,

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

✨Challenge 1: todo correcto, está perfecto!
Lo único:

  1. Now try to append the following elements to tup.
tup_append = tup + ("r","o", "n", "h", "a", "c", "k")
print(tup_append)

De esta manera te funcionará:)

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: Nada a comentar, todo correctísimo

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