Edu :) - #20
Open
edwardrodgermartinez wants to merge 1 commit into
Open
Edu :)#20edwardrodgermartinez wants to merge 1 commit into
edwardrodgermartinez wants to merge 1 commit into
Conversation
|
Hola Edu:) Felicidades por tu segundo lab!!!!!! En general está impecable, tengo poco a comentar. ✨Challenge 1: todo correcto!
De esta manera te funcionará:)
En tu código, estás imprimiendo la longitud del tup1 (4) y el tup 2 (4) por separado. Te pide que los sumes, por lo que debes añadir un contador que sume la longitud de ambos tups para que te de 8. Entonces si será igual a la longitud de la tup3, que también es 8. ✨Challenge 2: idem, está perfecto!
The pop method removes an element randomly, thus we could convert it to list to pop the first element. ✨Challenge 3 nada a comentar, está perfecto. sigue así!!!!!!! 🚀 |
Author
|
Gracias Bego!!! :) :) :) este finde me miraré en detalle los errores
…On Wed, 11 Oct 2023 at 17:46, Bego ***@***.***> wrote:
Hola Edu:)
Felicidades por tu segundo lab!!!!!! En general has hecho un lab
IMPECABLE, tengo poco a comentar.
✨*Challenge 1*
1. Count the number of elements in tup1 and tup2. Then add the two
counts together and check if the sum is the same as the number of elements
in tup3.
sum1 = len(tup1)
sum2 = len(tup2)
sum12 = sum1 + sum2
print(sum12)
sum3 = len(tup3)
print(sum3)
En tu código, estas imprimiendo la longitud del tup1 (4) y el tup 2 (4)
por separado. Te pide que los sumes, por lo que debes añadir un contador
que sume la longitud de ambos tups para que te de 8. Entonces si será igual
a la longitud de la tup3, que también es 8.
✨*Challenge 2*
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* no tengo nada a comentar, esta perfecto.
sigue así!!!!!!! 🚀
ps: espero que hoy te vayas a cenar hoy más pronto:)
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCVAY4UVHSMW6RD47SJ7W5LX625LVANCNFSM6AAAAAA522QD5Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
me voy a cenar :)