create account

My Coding Quiz #42 by eniolw

View this thread on: hive.blogpeakd.comecency.com
· @eniolw ·
$14.59
My Coding Quiz #42
<div class="text-justify">

<center><h2>My Coding Quiz #42 👨‍💻🛠️🧩</h2></center>

<p>Welcome to the new installment of my series of <b>Coding Quizzes</b>, in which you will be able to test your knowledge and skills about programming and software development in a simple and fun way. If you want to learn more about it visit <a href="/@eniolw">my blog</a> here on Hive and the <a href="/@eniolw/my-coding-quiz-1">first post</a> where I introduced it.</p>

<h3>Without further ado, here's the riddle...</h3>

<br>
<center>
<img src="https://images.ecency.com/DQmPkxHrQExVQqLRJSsG7gv5NmjjWTLM6ogrF5xrBB8ux5G/imagen.png" alt="Quiz">
<h6>By @eniolw</h6>
</center>

<br><center><h3>What's your choice?</h3></center>

<p><b>Solution to the <a href="/@eniolw/reacting-to-the-war-debunking-b24d605f83879">previous quiz</a>:</b> <b>3</b>. First a list called <code>songs</code> is created with four song titles. If you are familiar with Aurora Aksnes, you will probably recognise these song names.</p>

<p>Then a second list called <code>played</code> is created containing <code>'Soft ' 'universe'</code>. There is no syntactic error or missing comma or anything similar here. We've already discussed that these strings isolated in this way are automatically concatenated by Python, so they really consist of the single string <b>'Soft universe'</b>.</p>

<p>We then do a <i>set difference</i> using the <code>-</code> operator instead of the <code>difference</code> method. This operation compares two sets and creates a new one with those items that are in the first set, but are not in the second set.</p>

<p>In our example, we see that the items <code>'Little boy in the grass'</code>, <code>'It happened quiet'</code> and <code>'Forgotten love'</code> are in <code>songs</code>, but not in <code>played</code>, so they constitute the newly created anonymous set. This set is converted into a list and from it we are interested in its size, which is <b>3</b>.</p>

<hr>

<p>If you want to blog about computer science and programming content, I invite you to join <a href="/">Hive</a> and participate in its communities, such as <a href="/created/hive-196387">STEM-social</a>, <a href="/created/hive-154226">Develop Spanish</a>, <a href="/created/hive-169321">Programming & Dev</a> and others.</p>

<hr>

<center><h2>Mi Quiz de Programación #42 👨‍💻🛠️🧩</h2></center>

<p>Bienvenido a mi nueva serie de <b>Quizzes de Programación</b>, en la cual podrás poner a prueba tus conocimientos y habilidades sobre programación y desarrollo de software de una manera sencilla y divertida.  Si quieres aprender más sobre ella visita <a href="/@eniolw">mi blog</a> aquí en Hive y el <a href="/@eniolw/my-coding-quiz-1">primer post</a> donde la presenté.</p>

<h3>Sin más preámbulos, he aquí el acertijo...</h3>

<br>
<center>
<img src="https://images.ecency.com/DQmbTPYw7ERZEaptEsihCcCdq7ub1objX2t2q9wkkyhc3uP/imagen.png" alt="Quiz">
<h6>Por @eniolw</h6>
</center>

<br><center><h3>¿Cuál es tu elección?</h3></center>

<p><b>Solución al <a href="/@eniolw/reacting-to-the-war-debunking-b24d605f83879">quiz anterior</a>:</b> <b>3</b>. Primero se crea una lista llamada <code>songs</code> con cuatro títulos de canciones. Si estás familiarizado con Aurora Aksnes, probablemente reconocerás los nombres de estas canciones.</p>

<p>Luego se crea una segunda lista llamada <code>played</code> que contiene <code>'Soft ' 'universe'</code>. Aquí no hay ningún error sintáctico ni falta una coma ni nada similar. Ya hemos comentado que Python concatena automáticamente estas cadenas aisladas de esta manera, por lo que en realidad consisten en una sola cadena: <b>'Soft universe'</b>.</p>

<p>Luego hacemos una <i>diferencia de conjuntos</i> usando el operador <code>-</code> en lugar del método <code>difference</code>. Esta operación compara dos conjuntos y crea uno nuevo con aquellos elementos que están en el primer conjunto, pero no en el segundo.</p>

<p>En nuestro ejemplo, vemos que los elementos <code>'Little boy in the grass'</code>, <code>'It happened quiet'</code> y <code>'Forgotten love'</code> están en <code>songs</code>, pero no en <code>played</code>, por lo que constituyen el conjunto anónimo recién creado. Este conjunto se convierte en una lista y de ella nos interesa su tamaño, que es <b>3</b>.</p>

<hr>

<p>Si quieres bloguear sobre contenido informático y de programación, te invito a unirte a <a href="/">Hive</a> y participar en sus comunidades, tales como <a href="/created/hive-196387">STEM-social</a>, <a href="/created/hive-154226">Develop Spanish</a>, <a href="/created/hive-169321">Programming & Dev</a> y otras.</p>

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 653 others
properties (23)
authoreniolw
permlinkmy-coding-quiz-42
categoryhive-197685
json_metadata"{"image":["https://images.ecency.com/DQmPkxHrQExVQqLRJSsG7gv5NmjjWTLM6ogrF5xrBB8ux5G/imagen.png","https://images.ecency.com/DQmbTPYw7ERZEaptEsihCcCdq7ub1objX2t2q9wkkyhc3uP/imagen.png"],"tags":["hive-197685","programming","coding","javascript","quiz","neoxian","proofofbrain","waivio","spanish","indiaunited"],"description":"My Coding Quiz #42 Welcome to the new installment of my series of Coding Quizzes, in which you will be able to test your knowledge and skills about programming and software development in a fun way.","app":"ecency/3.0.37-vision","format":"markdown+html","image_ratios":["0.9960","0.9960"]}"
created2024-01-26 18:11:18
last_update2024-01-26 18:11:18
depth0
children6
last_payout2024-02-02 18:11:18
cashout_time1969-12-31 23:59:59
total_payout_value7.346 HBD
curator_payout_value7.243 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,633
author_reputation257,549,555,875,151
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,799,216
net_rshares35,956,581,412,174
author_curate_reward""
vote details (717)
@indiaunited ·
Indiaunited Curation 1706368695021
This post has been manually curated by @bhattg from Indiaunited community. Join us on our [Discord Server](https://discord.gg/bGmS2tE). 

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens. HP delegators and IUC token holders also get upto 20% additional vote weight. 

Here are some handy links for delegations: [100HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=174066.51247676532%20VESTS), [250HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=435166.28119191335%20VESTS), [500HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=870332.5623838267%20VESTS), [1000HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=1740665.1247676534%20VESTS). 

[![image.png](https://files.peakd.com/file/peakd-hive/bala41288/46eaz12N-image.png)](https://discord.gg/bGmS2tE) 

<sub>**100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited.**</sub>
👍  
properties (23)
authorindiaunited
permlinkindiaunited-1706368695021
categoryhive-197685
json_metadata{"app":"hiveblog/0.1","format":"markdown","tags":["hive-197685","programming","coding","javascript","quiz","neoxian","proofofbrain","waivio","spanish","indiaunited"]}
created2024-01-27 15:18:15
last_update2024-01-27 15:18:15
depth1
children1
last_payout2024-02-03 15:18:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,329
author_reputation100,058,866,819,305
root_title"My Coding Quiz #42"
beneficiaries
0.
accountbhattg
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,822,059
net_rshares15,950,760,636
author_curate_reward""
vote details (1)
@eniolw ·
Thank you, @bhattg and @indiaunited!
properties (22)
authoreniolw
permlinkre-indiaunited-2024127t174550550z
categoryhive-197685
json_metadata{"tags":["hive-197685","programming","coding","javascript","quiz","neoxian","proofofbrain","waivio","spanish","indiaunited"],"app":"ecency/3.0.37-vision","format":"markdown+html"}
created2024-01-27 21:45:51
last_update2024-01-27 21:45:51
depth2
children0
last_payout2024-02-03 21:45:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length36
author_reputation257,549,555,875,151
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,829,365
net_rshares0
@stemsocial ·
$0.13
re-eniolw-my-coding-quiz-42-20240127t214229207z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.&nbsp;<br />&nbsp;<br />
</div>
👍  ,
properties (23)
authorstemsocial
permlinkre-eniolw-my-coding-quiz-42-20240127t214229207z
categoryhive-197685
json_metadata{"app":"STEMsocial"}
created2024-01-27 21:42:30
last_update2024-01-27 21:42:30
depth1
children0
last_payout2024-02-03 21:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.063 HBD
curator_payout_value0.063 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length565
author_reputation22,928,569,612,406
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,829,313
net_rshares312,679,708,714
author_curate_reward""
vote details (2)
@yonnathang ·
@tipu curate 8 
properties (22)
authoryonnathang
permlinkre-eniolw-s7wj1o
categoryhive-197685
json_metadata{"tags":["hive-197685"],"app":"peakd/2023.11.3"}
created2024-01-27 03:58:42
last_update2024-01-27 03:58:42
depth1
children2
last_payout2024-02-03 03:58:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length15
author_reputation384,261,297,067,207
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,810,970
net_rshares0
@eniolw ·
Gracias!
properties (22)
authoreniolw
permlinkre-yonnathang-2024127t1746027z
categoryhive-197685
json_metadata{"tags":["hive-197685"],"app":"ecency/3.0.37-vision","format":"markdown+html"}
created2024-01-27 21:46:00
last_update2024-01-27 21:46:00
depth2
children0
last_payout2024-02-03 21:46:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation257,549,555,875,151
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,829,367
net_rshares0
@tipu ·
<a href="https://tipu.online/hive_curator?yonnathang" target="_blank">Upvoted  &#128076;</a> (Mana: 0/75) <a href="https://peakd.com/hive/@reward.app/reward-app-quick-guide-updated" target="_blank">Liquid rewards</a>.
properties (22)
authortipu
permlinkre-re-eniolw-s7wj1o-20240127t035852z
categoryhive-197685
json_metadata"{"app": "beem/0.24.26"}"
created2024-01-27 03:58:51
last_update2024-01-27 03:58:51
depth2
children0
last_payout2024-02-03 03:58:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation55,950,036,729,930
root_title"My Coding Quiz #42"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,810,974
net_rshares0