nazaninsaedi / Coursework-Planner

Your coursework planner
1 stars 1 forks source link

[TECH ED] CYF Blocks #5

Closed nazaninsaedi closed 1 year ago

nazaninsaedi commented 1 year ago

From Course-Fundamentals created by SallyMcGrath: CodeYourFuture/Course-Fundamentals#2

Link to the coursework

https://blocks.codeyourfuture.io/

A note on ordering

This exercise should be done after the Code.org coursework in the same sprint. The reason for this is that the Code.org course will give you skills which will help you with this coursework - this coursework depends on the other coursework.

In the future, we won't always call out dependencies between coursework - just like in real life as a software engineer, part of your sprint planning is about working out the best order to do different tasks. When planning, you should consider what the best order of approaching tasks will be.

Why are we doing this?

In this course, you will use block-based programming (CYF Blocks) to create JavaScript that changes the HTML on a web page. Work through the exercises in order, up to and including Buttons, inputs and clicks: a todo list.

You must at least attempt all those exercises before we meet. If you get stuck, don't worry. Come to the session with your questions and we will all discuss them together.

Maximum time in hours

8

How to get help

If you get stuck, don't worry. Come to the session with your questions and we will all discuss them together.

How to submit

Once you're finished, share your solution to List of links by pasting the (very long!) url onto a comment on your copy of this ticket.

Copy one URL per comment.

How to review

Share your solution on with your cohort on your cohort's slack channel and ask for critique.

Anything else?

If you have extra time, complete one of the exercises in Buttons and Clicks: consolidation (or create something entirely new) and share it with your cohort in the Slack channel.

Write down some questions to bring up next week.

nazaninsaedi commented 1 year ago

Kamino cloned this issue to maz786/Coursework-Planner

nazaninsaedi commented 1 year ago

Kamino cloned this issue to RbAvci/Coursework-Planner

nazaninsaedi commented 1 year ago

CYF Blocks - list of fruit.pdf

nazaninsaedi commented 1 year ago

Kamino cloned this issue to haythem-f/Course-Fundamentals

nazaninsaedi commented 1 year ago

Kamino cloned this issue to nazaninsaedi/Coursework-Planner

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/#exercise_button_variables_consolidation

CYF Blocks -count_sheep.pdf

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j.blocks.languageVersion!0~blocks!%5B('type!'on_startF%24%3BqUbHg'%3Aza%7C%2BVIw'%3A2le%3B'~x!16~y!841!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%22HANDLER.Bwith_element_by_idF%23%2F%5EMQ7%2CzRK)hTQvM2PqE'~fields.ID!'adjective')%22STACK.Bset_contentFn5X%7B'%3A%2418%3DIEiOMqwbhLv'%22VALUE.shadow.type!'textF%3Dr7hv(Y9-E(Pl%7C1w%5ER20'4!''))~BtextFx05%242HLZ7mSe6yG%3Aar%3Bt'4!'cute')))))))))))%5D))~h!'WWW%3Cp%3E%5CnWThe*noun1Jdog3*verbJsaw3%20the*adjectiveJ___3%5Cn%20*noun2Jcat3%5Cn%3C%2Fp%3E')*%20%3Cu%20id%3D%5C'.!('3%3C%2Fu%3E4~fields.TEXTBblock.type!'F'~id!'J%5C'%3EW%20%20%22~inputs.%01%22WJFB43.*_ https://blocks.codeyourfuture.io/#exercise_change_text

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B%C2%894gs9%5D668GJvT_-Ge8OzP'~x!14~y!12~f%7F%C2%80by_id'~id!'f*xr-c_Kb%3B6%2CE%2B%3F%3BfLAY'%C2%88ID!'banana%C2%85STACK%26Nk%5E%5Be%2Bpmmna_4k%23U0%255%3F%C2%82c%22er'~id!'%2C'YYNtHG(%2C'p(Zg%2C'aa%40Ud_'%C2%81ffff00%C2%8A'%3A%3B%2CN9(jImWD%24%3DrkS2%7D%3A%7B%C2%87%22er'~id!'O%40%25'%3A4lIv2ee%3F*'%3A9i-E%23w'%C2%81006600%C2%84dG%2C'r)E%24)%5DDj%23yx-Wwg%3FH'~x!19~y!148~f%7F%C2%80by_id'~id!'%23%5Dla%3Frp%2C%2C.VKZ.lpR**%5E'%C2%88ID!'apple%C2%85STACK%265Aj)6.%24QO-d%2Ftn%7C)y*Rm%C2%82c%22er'~id!'u)%25%25I-f3(%2CfxHe%5E%40U1*p'%C2%8166ff99%C2%8A7CtZj90%3F.%3FEJgo%3AJqf%2C_%C2%87%22er'~id!'QolK%2BZbZoseV%234n9)hl~%C2%81cc33cc%C2%84zX%233*%2FI1%3AL-QB9%7DyXPf%2C''~x!19~y!284~f%7F%C2%80by_id'~id!'b%3A0vcK*%7D%7Dl%2Bz.d3mjC%3B~%C2%88ID!'strawberry%C2%85STACK%26%7CJFUmJw3uZNA5OS0ybSU%C2%82c%22er'~id!'VlbEM773WgaN0%7DfXJ%2301'%C2%8166ffff%C2%8A%2C'%23oZutL_5b16%5BZ%3DrVAu%60%C2%87%22er'~id!'8R%2C'YOLI%2Cr(%3F__rG%3FUC0)'%C2%81cc6600')))))))))))))%5D))~h!'%3Cul%C2%83banana%5C'%3EBanana%3C%2Fli%C2%83apple%5C'%3EApple%3C%2Fli%C2%83strawberry%5C'%3EStrawberry%3C%2Fli%3E%5Cn%3C%2Ful%3E%5Cn')%22olor%C2%85VALUE%C2%86colour_pick%26%C2%86set_attribute'~id!'%7Fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D%C2%80%C2%85HANDLER%C2%86with_element_%C2%81%C2%88COLOUR!'%23%C2%82'%C2%88PROPERTY!'%C2%83%3E%5Cn%20%20%3Cli%20id%3D%5C'%C2%84')))))))))))))%2C%C2%89%C2%85')~inputs!('%C2%86!('block!('type!'%C2%87%C2%82backgroundC%C2%88~fields!('%C2%89('type!'on_start'~id!'%C2%8A'))))~next%26%01%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_set_colours

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B%7Fon_start%263gdE_jjVnx(%7C%2F%3ABmjpB%3F'~x!-187~y!-450~fY%22by_id%26j%24V%2Cj9K8n4pD0Ie9lP4rqID!'listQadd_element%26T)PXw%5B)KRo%7CRyTup(tk4qELEMENT!'liQset_content%26_bD%25oX*3k%2C'p%3DNzB)%60()e%23%5Bm.erhrel%2C'%60n*%25aiiE.iqTEXT!'banana'))))))))))))))%2C%7Fon_start%26%5D%248w%40vV%3BT3%5Bxhw0jK6md'~x!-188~y!-286~fY%22by_id%268H3b%2F%24v)%24%7Ce%5Bc3EKG%2B-JqID!'listQadd_element%26WxvDNU-%7B0i%2Bm_%7DsP)%2CvTqELEMENT!'liQset_content%26Frzn7**%40G%5EkS**EkNxSZ%23)DOV(ng%40I%3D%7D%7Bi_llgN5BqTEXT!'Mango'))))))))))))))%5D))~h!'%3Cul%20id%3D%5C'list%5C'%3E%5Cn%20%20%3Cli%3EApple%3C%2Fli%3E%5Cn%5Cn%3C%2Ful%3E')Q')~inputs!('STACK!('block!%7FYields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7Dq'~fields!('%22')~inputs!('HANDLER!('block!%7Fwith_element_%23'~inputs!('VALUE!('shadow!%7Ftext%26%26'~id!'%7F('type!'%01%7F%26%23%22qYQ_

https://blocks.codeyourfuture.io/#exercise_add_fruit

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'Kp'%3AI6%7B%60D%7D*OQIEcNP-%5D%2C''~x!-81~y!-241~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')~inputs!('HANDLER%22with_element_by_id'~id!'W(%5E9%2C'i2Fom%3AD%7D%256J%7B%5Erx%26ID!'list%7F%C2%83_muTqk)3GX3BFJztZj.%3D%C2%86li%7F%C2%83%40%23%2CMtufbc5w0%40%60SZSQ%40M%C2%86a%7F%C2%87qzDdS%2Fp6%24VI%3F)%25CucKg*%26%C2%82ext'~id!'mF*z%2BR1R.(S%2CbdI%2C'_INo%C2%8Bhttp%C2%8A%C2%84S%7BrbV(UhiF*%7BYOlp%2Ff%7BO%C2%80%2Cl7y%2C7%7D%5B%3DWL(QzMl.JZs%C2%8B%C2%8Ce'))%C2%89%2F8u%3F%3F%2C'%7BG0Sj.%240LeKSPJ%C2%86li%7F%C2%83naB%2BN%7C%7Ce1vtbG%2F(%7D82Wx%C2%86a%7F%C2%87vAI%3AW8)ewfy%7Dj%2CauM%5BF8%26%C2%82ext'~id!'95%40%3A%7B)5vq9Et%3D%3DrX%3F(xv%C2%8Bhttps%C2%85google.com%C2%84_(rv%5E%60j%2CoAKXq%60U5r%5BNU%C2%804YR%24O1%7DH%3AGgr%7Drv%3F(%3F%25N%C2%8Bgoogle'))%C2%89zv%236WQ2%3D%60VO%5DW%7C4jO)q%7B%C2%86li%7F%C2%83nleNXy(98A%5EtK%23o)GZ%7C%5E%C2%86a%7F%C2%87%7BO%7BE%24u.tR%601G%2BZL9e%23lZ%26%C2%82ext'~id!'uBjAGR%2FkR%7DkhQ.%243AVgy%C2%8Bhttps%C2%85bbc.com%2Fnews%C2%84E%23lPq98U(IT%2CG%40W%2B%3Dsx%5D%C2%80pks%3D*8k%7B%23woz%7DKs6S%24%3B%2C'%C2%8BBBC%20News')))))))))))))))))))))))%5D))~h!'%5Cn%20%3Cul%20id%3D%5C'list%5C'%C2%81%C2%8A%5C'%3E%C2%8C%C2%88google.com%5C'%3EGoogl%C2%88bbc.com%2Fnews%5C'%3EBBC%20News%3C%2Fa%3E%3C%2Fli%3E%5Cn%3C%2Ful%3E%5Cn%5Cn')%22!('block!('type!'%26'~fields!('%7F')~inputs!('STACK%22%C2%80'~inputs!('VALUE!('shadow!('type!'text'~id!'%C2%81%3E%5Cn%20%20%3Cli%3E%3Ca%20href%3D%5C'http%C2%82PROPERTY!'href')~inputs!('VALUE%22t%C2%83add_element'~id!'%C2%84'))))~next%22set_content'~id!'%C2%85%3A%2F%2Fwww.%C2%86%26ELEMENT!'%C2%87set_attribute'~id!'%C2%88e%3C%2Fa%3E%3C%2Fli%C2%81s%C2%85%C2%89))))))))))~next%22%C2%83%C2%8A%C2%85codeyourfuture.io%C2%8B%26TEXT!'%C2%8CCode%20your%20futur%01%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_list_links

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B%60YlUYfK3%5DbDExR%25q'%3A%2C'wiC'~x!15~y!10Glist%22%5E%2F1th%2BOWJ%3FT%40%25*EQivA4E'%26ID!'list-add_element%7FmM%40qHux7L%25F8%3B%7C%40ZSfud'%26ELEMENT!'li-set_content%7F%40%24z%7CtEF9%25%3AU.s%2Cxh%5B2CW'~inputs!('VALUE!('shadow!('type!'text%7F)uAZINTqz%2F%2Frx)Q%2C'%2C%7Cua'%26TEXT!'apple'))))))))))))))%2C%60RtVDi%3A6%3Fz%24c%25O%2FSP6M8B'~x!17~y!181Gremove%22%5EwI%2F%2C8d%40%7CmOa%7CSki%7BjfN5'%26ID!'list-remove_contents%7F9n%2B%3Dvg%3AcxSxm%2C'%40%23ga(%3B_')))))))%5D))~h!'%20%20%3Cul%20id%3D%5C'list%5C'%3E%3C%2Ful%3E%7Dadd%5C'%3Eadd%20an%20apple%3C%2Fbutton%3E%20%20%7Dremove%5C'%3Eremove%20all%20the%20apples%3C%2Fbutton%3E')-')~inputs!('STACK!('block!('type!'G%26TEXT1!'when%20the%20element%20with%20id'~ID!'%22'~TEXT2!'is%20clicked')~inputs!('HANDLER!('block!('%26~fields!('%5Etype!'with_element_by_id%7F%60('type!'element_clicked%7F%7D%5Cn%3Cbutton%20id%3D%5C'%7F'~id!'%01%7F%7D%60%5E%26%22G-_

https://blocks.codeyourfuture.io/#exercise_button_add

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j*6s*languageVersion!0~6s!%5B('Selement_clickedOidG8(q%607%7BLu57q9t'%3AYma)%3F(Ox!18~y!14~WEXT1Gwhen%20the%20element%20with%20idOIDG-OTEXT2Gis%20clicked')~Cs*HANDLER*6*Sz_to_speechOidGJ8Zn8FjFKZ%3A9.%3DrQ%3BioJOCs*VALUE*6*Sget_C_data_with_idOidGLhXRB)VsBD3XX0%25%5D%2FewQOWYPEGstringOIDGz'))))))))%5D))~hG%3CCMzv%20%2F%3E%5Cn%3C-M-v%3Espeak%3C%2F-%3E')*!('-button6blockCinputG!'M%20id%3DvO'~StypeGWfields*Tv%5C'ztext%01zvWSOMGC6-*_

https://blocks.codeyourfuture.io/#exercise_button_input

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('jvblocksvlanguageVersion!0~blocks!%5B('type!'%23_clickedFshO%3BsS%2C'%3A%3Fj3rtr%7B%3Ba%2CK~~x!17~y!185TEXT1!'when%20the%20%23%20with%20id'~ID!'%24'~TEXT2!'is%20clicked')6HANDLERv*with_%23_by_idFPJJ.oq%60gM%5B%3FI(%3A%3A)%3B%60%5D7'5ID!'list%26add_%23F%25%3F%25A)Ep8dV%60(US%5B%25e%25tZ'5ELEMENT!'li%26set_contentF%7C%5D1DzJ'%3AHde%3AW%3F%2Fok%5ES%3F9'6VALUEvshadowvtype!'textFMQxMR%3Bkd0jSs%60g'%3A1MmN%7D'5TEXT!''))~*get_input_data_with_idFK3Wr(BA-mrQ4OU.Jq%2BCa'5TYPE!'string'~ID!'text'))))))))))))))%5D))~h!'%3Cp%3EThings%20to%20do%3A%3C%2Fp%22ulGlist%5C'%3E%3C%2Ful%22inputGtext%5C'%20%2F%22%24G%24%5C'%3Eadd%20Todo%20Item%3C%2F%24%3E')*blockvtype!'5~fieldsv6~inputsvF'~id!'G%20id%3D%5C'v!('%22%3E%5Cn%3C%23element%24button%26')6STACKv*%01%26%24%23%22vGF65*_

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B%C2%8FgXF%7B9ZD9W%3DMoi9b*r(M0'~x!14~y!85%22verb%26%C2%86z%3AafLpdsBfyS%60jZZM%24bq%C2%80YvC%60m%3A%2FxU%3B3%3Dwzc)P%24F1%C2%81'~id!'KMea%2Bg2%23Myj%5B%2Bq30S2%7CP%C2%85TYPE!'VERB'%7F%2C2w*%3F2%40ruvH%5D'%3ARu1(lXQ'~x!13~y!8%22noun1%26%C2%86%7D3s2%2C'7g)*%2C'gYc.%24%60lnc4%C2%80t2W%3D5cI%3B%3FqX_O%3F_KLZ2G%C2%81'~id!'HB%245%3DY%5DFpC%3B%23OJm%5Dh(Vw%C2%85TYPE!'NOUN'%7FpQa'%3AZ*d%2C'Hif%60fBd%2CAqm7'~x!12~y!158%22adjective%26%C2%86dB7-*bRgtsh1H%2FrPcAoa%C2%80saH-s%2C0JC%2F%5BfR.%7Ct%7D%2C'%3F%5B%C2%81'~id!'4IL%5EqMPU7PGN39)27K)M%C2%85TYPE!'ADJECTIVE'%7F8%3D%2Fd4%3Drv%5ECs4FO9jPpC'%3A'~x!12~y!235%22noun2%26%C2%86SS0%3B8%3B(h81HGlW2HK-E(%C2%80tAxuv%7BxUp-%3ALJs%7Bd-%2C'%3AE%C2%81'~id!'%2FuF%7D%7B7UAxFtk%2CPf%5BIpm~~fields!('TYPE!'NOUN'%7FpG%60%3BfNb%3DpMSP%5E%25%5Ehx%5EWS'~x!12~y!308%22daymode%26%C2%8E%2F_%2C'*A6YDNBb%23s%5BTnNQ%5Eu%C2%8B%C2%84%60L6%3AbRkuubC2dL%2BL86(z%C2%89backgroundC%C2%82er'~id!'8LL%5EEY%5Ec7F*dLOF68%24T%40%C2%88ffffff'))))~next%C2%84FZeZcPoqa7%2B2eALAoBh5%C2%89c%C2%82er'~id!'g%3A%7D%7D3-QE%40A%5BCB1%24L)69A%C2%88000000')))))%7Fe'%3AL%23p18Mg%23u%3A4Cwd%25%60dr'~x!11~y!446%22nightmode%26%C2%8EtZh9ALefV'%3Aq_9aU%23%2C'1%5E%60%C2%8B%C2%84KL%3BKTkeyQe'%3AQa8Y-eoE7%C2%89backgroundC%C2%82er'~id!'Zby%2Fm*%5Dmd%24%25tJ%2F_Y'%3AZTM%C2%88000000'))))~next%C2%84xXf7'%3ADDzJc%2CA9%5B%5B%3DD7%7Ck%C2%89c%C2%82er'~id!'nluHPU3O%235a-N8Hld).%3A%C2%88ffffff')))))%7Fe_v1%2C'%23GdydHAEZR%24Nw'%3A4'~x!7~y!582%22button%26%C2%86D*AeO_%2346t8Iab8L%25Q%7B%5E%C2%80ob_%3BMkyeqVZ)9%2C'W2FOWv%C2%90text'~id!'1WTwif%7C%3D2bEGln*tcz%2C'R%C2%85TEXT!'07846400070'))))))))%5D))~h!'%3Cp%3E%5Cn%20%20The%20%C2%83noun1%5C'%3Edog%C2%87%20%C2%83verb%5C'%3Esaw%C2%87%20the%5Cn%20%20%C2%83adjective%5C'%3Ewhite%C2%87%5Cn%20%20%C2%83noun2%5C'%3Ecat%C2%87%C2%8Adaymode%5C'%3E%20Day%20Mode%C2%91%C2%83nightmode%5C'%3E%20Night%20Mode%C2%91%3Cul%20id%3D%5C'list%5C'%3E%5Cn%3Cli%3ECYf%C2%8Cli%3ECoding%C2%8Cli%3EBus%20strike%C2%8C%2Ful%3E%C2%8Acontact%5C'%3E%20Contact%C2%91%3C%2Fp%3E')%22~fields!('TEXT1!'when%20the%20element%20with%20id'~ID!'%26'~TEXT2!'is%20clicked')~inputs!('HANDLER!('block!('%7F))))))))%2C%C2%8F%C2%80'~inputs!('VALUE!('shadow!('type!'text'~id!'%C2%81%C2%90get_randomWord%C2%82olor')~inputs!('VALUE!('%C2%8Dcolour_pick%C2%83%3Cbutton%20id%3D%5C'%C2%84!('%C2%8Dset_attribute'~id!'%C2%85'~fields!('%C2%86type!'set_content'~id!'%C2%87%3C%2Fbutton%3E%C2%88%C2%85COLOUR!'%23%C2%89%C2%85PROPERTY!'%C2%8A%5Cn%3C%2Fp%3E%5Cn%3Cp%3E%5Cn%C2%83%C2%8B%C2%85ID!'list')~inputs!('STACK%C2%8C%3C%2Fli%3E%5Cn%3C%C2%8Dblock!('type!'%C2%8Etype!'with_element_by_id'~id!'%C2%8F('type!'element_clicked'~id!'%C2%90%C2%85TEXT!''))~%C2%8D%C2%91%20%C2%87%5Cn%01%C2%91%C2%90%C2%8F%C2%8E%C2%8D%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_button_consolidation

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'E'%3AE71yb%40%2CtHy%5Dhdj%7CEOr'~x!13~y!17zTEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%26HANDLER!('%22variables_set'~id!'%5DKtHfT1%2C'FncCMeDc%24%7C.%40'zVAR!('J)%26VALUE!('%22%7Fd.Comofe%24Ivve%23CyW-%5Dq'zNUM!0))))))))%2C('type!'element_clicked'~id!'%7D%25FqK2W1OWh%3B%60(0-_NEQ'~x!9~y!96zTEXT1!'when%20the%20element%20with%20id'~ID!'button'~TEXT2!'is%20clicked')%26HANDLER!('%22math_change'~id!'YN%2BTvs%23ea%5B%23qeR4)%7BNbb'zVAR!('J)%26DELTA!('shadow!('type!'%7F-4H%2B%7B%2BUvG%5B_vvaqcSK%25p'zNUM!1))~%22%7F%7BqT%2C'oKtww8ng'%3A-%40Rs%2C'%3F%24'zNUM!1))))~next!('%22set_content'~id!'%2C%5DqN%246s_5Yw8vW%7Dor*dZ'%26VALUE!('shadow!('type!'text'~id!'l%3Dmu%7Dj%60GV%3BC-nKq%60%2BTmC'zTEXT!''))~%22variables_get'~id!'P9(%3Fnm%3DtHvli%2F1-LY6h%7D'zVAR!('J))))))))))%5D)~variables!%5B('name!'click%20count'~J%5D)~h!'%20%20%20%20%20%20%3Cbutton%20id%3D%5C'button%5C'%3EButton%3C%2Fbutton%3E')Jid!'QQKZLdAa*%2B%60fRvs%2C'k%5E%2C%3B')z~fields!('%22block!('type!'%26~inputs!('%7Fmath_number'~id!'%01%7F%26%22zJ_

https://blocks.codeyourfuture.io/#exercise_button_variables_state

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'element_clicked'~id!'l%7Dd.S%2BV%2Bc-f%2CY%5DtGNP%23d'~x!11~y!127~fields!('TEXT1!'when%20the%20element%20with%20id'~ID!'button'~TEXT2!'is%20clicked'%C2%81HANDLER%22controls_if'~id!'l.%2C'AW%23sGW%2C'uIM%2F2HuQj-'~extraState!('hasElse!true%C2%81IF0%22logic_compare'~id!'.Mg5%7BxzK%3Fs%7C%5E%23%7B%7D%40lkOX%26OP!'EQ'%C2%81A%22get_input_data_with_id'~id!'7H.OhNEj6e%3F.%60q5r-NS%3B%26TYPE!'string'~ID!'text')))~B%22text'~id!'nV)aJ8n%2CIIvTN.H'%3A%2C'%25p4%C2%8A~DO0%C2%8BGQ%60(8i)%3Dea_BVYe5Iw9t%26VAR!('%C2%80%C2%83!'Ttd%3BE%5EERx%2C'Y%3DYG%2B%3BY5o%3D%26%C2%84'~id!'J%25%5DvcsF%7CT0%60RLF%3A)PpNm%26ID!'sheep%C2%86nt'~id!'3cB%5BNtn.%3A*8Wwvy6%23Wjz%C2%82Qhn'%3An%25%5E7T)7%2F%3Bej24'%3AbY%C2%8A)))))~ELSE%C2%8B%3BZ%7CXXzU0%7C%23giw53LPcEL%26VAR!('%7F%C2%83!'h%23%25%7DI%24d%7C%25%60QZ%3FXk_%3B'%3Atp%26%C2%84'~id!'QYnVS.vgRwZq%3B(%40o9g%2Br%26ID!'other%C2%86nt'~id!'u3mYNyPt%23oYgM%25R6Ynjy%C2%82%2FCl6i9cODpx2yXwx(%25vD%26TEXT!''))~block!('type!'variables_get'~id!'tc%3B%2FtjG7Y3Ov%7Ck.fBMm)%26VAR!('%7F))))))))))))))))%2C('type!'on_start'~id!'*jlA%6091Pd%3A8C65ABMS1%3A'~x!16~y!8~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D'%C2%81HANDLER%C2%89U%5BQ%239r%5Ef%2FY%60fEAiV*%24_%7C%26VAR!('%7F%C2%87'%2Cy-H4.oh%3DY1f%2C'-eWXjsP%26NUM!0))))~next%C2%89T3%24yh%3A2ZWoN6g%3F7M0le%23%26VAR!('%C2%80%C2%87'dom(8cJCGmD%2C'8GpgzloL%26NUM!0))))))))))%5D)~variables!%5B('name!'set'~id!'KRIitp30vUT%40W%40%7B(m%2BXL')%2C('name!'set%20other'~id!'9k%3FNQZfk%60%7D*Kjz1Pj*_g')%2C('name!'other'~%7F%2C('name!'sheep'~%C2%80%5D)~h!'%20%20%20%20%20%20%3Cp%3EThere%20have%20been%20%3Cspan%C2%88sheep%C2%85sheep%20%F0%9F%90%91%20and%20%3Cspan%C2%88other%C2%85others.%3C%2Fp%3E%5Cn%3Cinput%C2%88text%5C'%20%2F%3E%5Cn%3Cbutton%C2%88button%5C'%3Eadd%20animal%3C%2Fbutton%3E')%22!('block!('type!'%26'~fields!('%7Fid!'i%5EssOJpF9D'%3A0k_8%7Cc1oq')%C2%80id!'%3FbMqZSco'%3Au%3F%3FOmX6k%3AMd')%C2%81)~inputs!('%C2%82'~inputs!('VALUE!('shadow!('type!'text'~id!'%C2%83%C2%81DELTA!('shadow!('type!'math_number'~id%C2%84NUM!1))))~next%22with_element_by_id%C2%85_count%5C'%3E0%3C%2Fspan%3E%20%C2%86_count'%C2%81STACK%22set_conte%C2%87%C2%81VALUE%22math_number'~id!%C2%88%20id%3D%5C'%C2%89%22variables_set'~id!'%C2%8A%26TEXT!'sheep'))))))%C2%8B%22math_change'~id!'%01%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_button_variables_consolidation

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'P%3B3%2Bg*VX%7BBmOCcnoo.DF'~x!12~y!9~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%7FHANDLER%C2%93set'~id!'%2C'%5BBZ.oBAZ'%3A)Wh%2C%2FC0Ks*%C2%91%C2%8A'))%7F%C2%85L%3FLF%7B%2B%3FasZWRf%5Bh.dL%7Bs%C2%83%C2%84%3FwY(soo%2B%3D6CxpXTPve1p%C2%8Dmonkey%C2%8FP8S-%7Dv5x4E2iX3%7D%3FqrQf%C2%8Dlion%C2%90%2F4t%7D0zJpg%3Ar%60RjY%5Ey2zO%C2%8Dtiger%C2%82~id!'MFrppH%2C%2C'b7%5BS%5EtPe1eZP%26ID!'animal%C2%87!!TIy0%40R'%3Aur5R%60%23%2C'ix%6011%C2%81hVda19%25Wf8%23Xo%3AeVHx7N%26%C2%806jQQvWT4ZlHpxwF5vW%3BC%C2%88d!'6ny%24%5DOKlFCQ)__z%3F%3DSA*%C2%91%C2%8A%C2%89id!'s%3BP5mWJz(e%3BFep%23CS4%2BM%C2%91%C2%8C'))%7F%C2%85FAvtWzudTXtq*41%2CjJk2%C2%83%C2%84Ulu4BNOkaLA0TS9V%2C's%5Ba%C2%8Dboy%C2%8FUX9WBPzg'%3ATazZ_%3DmzTM6%C2%8Dgirl%C2%90k%3B%40lF9mcLHwR%3D%40r91%40%2B%5B%C2%8Dpolice%C2%82~id!'qc*%60Mf7kg%2BQ6-u%2C'4%60y3Y%26ID!'noun%C2%87!'MZ%3B%40%2Cc)om%2C%3FLo)1X%5BRv6%C2%81FbD_GTfNh%3Dp%3DJtV2zF%3DU%26%C2%80KWv%3F.%2C'B4Qn%3BaSe%2F4%25eg%60%C2%88d!'bu24%7C%3FkOYRo%40jC%7CevRiK%C2%91%C2%8C%C2%89id!'VE%5ECIoW3074vg%2B%250%7B68M%C2%91%C2%8B'))%7F%C2%85%5D'%3AI4J%7D6O%40%25%3D%5D8%60%3AlR%3A%2BX%C2%83%C2%84Rn%40q%5B4uR%5E7A%2F%23YhJ%2C'5I%2B%C2%8Dride%C2%8FUp%2CKycuAk.1%3AxZ)Fy%7C%3Ak%C2%8Dlisten%C2%900h%3Av2Sj%3FzXA%5B0YQ%5D%3A4Bt%C2%8Ddrink%C2%82~id!'E_9*c'%3AqEG7EJI%40j%7BY%5D80%26ID!'verb%C2%87!'rfn(P'%3A%7BP7%2FAjEk'%3A%3DX%605a%C2%81q-o%247iU6Afl%5B%5E(Trl.jH%26%C2%80iYm%601wP2.)r2Fc%2F*va9%3B%C2%88d!'l%23bdh%7D%23%5DU7XfX8gY4%3FYS%C2%91%C2%8B%C2%89id!'rb5Jv%23DDCs9d%3DQOjSCuB%C2%91%C2%86)%7F%C2%851hAjVKnS%24F*%3Bsl-MTv-1%C2%83%C2%840f3%2B%5BE9Ims%5DOp%3FWP.s%23y%C2%8Dbrave%C2%8F_%5Db%5B%3D%23e%5B%3D%7C%2Bj8'%3AbV5p8N%C2%8Dlucky%C2%90TN1v_j%2FVWC%2CSt%5DwWs%2Fu%23%C2%8Dhelpful%C2%82~id!'2lsz%3Be%24w8jO8JHHv%5EhR%60%26ID!'adjective%C2%87!'7F*6%2B%7Du%24)Tz%2B%2C'bM%24DP)u%C2%815Ha.a4hjKt%2C'X%24C5dbsY%3B%26%C2%80%7DSHVgQ%60y'%3A7vzDtNoe5D%23%C2%88d!'%2C'%23vJX%60OL9WjO%7D_K%60cq%25S%C2%91%C2%86))))))))))))))))))))))))))))%5D)~variables!%5B('name!'animal'~%C2%8A')%C2%92noun'~%C2%8C')%C2%92verb'~%C2%8B')%C2%92adjective'~%C2%86%C2%92array'~id!'BOL39_lh1F%40yNUa'%3A%3B%5B6v')%5D)~h!'%3Cp%3E%5CnThe%20%5Cn%C2%8Enoun%5C'%3Eman%3C%2Fu%3E%5Cn%20%C2%8Everb%5C'%3Esaw%3C%2Fu%3E%20%5Cnthe%20%5Cn%C2%8Eadjective%5C'%3Ewhite%3C%2Fu%3E%20%C2%8Eanimal%5C'%3Ecat%3C%2Fu%3E%3C%2Fp%3E')%22!('block!('type!'%26'~fields!('%7F~inputs!('%C2%80TEXT!''))~block!('type!'get_randomMember'~id!'%C2%81'%7FVALUE!('shadow!('type!'text'~id!'%C2%82')))))))~next%22with_element_by_id'%C2%83'~extraState!('itemCount!3)%7FADD0%C2%84%22text'~id!'%C2%85VALUE%22lists_create_with'~id!'%C2%86id!'NYs(mY%25%40%25g%7D%5BvIsp%3AiW%2C'')%C2%87')%7FSTACK%22set_content'~id%C2%88'%7FARRAY%C2%93get'~i%C2%89')))))))))))~next%C2%93set'~%C2%8Aid!'o%60%3B%3A%7Cy1NkGudjAEik(8e%C2%8Bid!'6lxC_D%2F_k%2F%7DXho%239EHHO%C2%8Cid!'9yzr.h%7C_p%2C2LC2kUm%2FK.%C2%8D%26TEXT!'%C2%8E%3Cu%20id%3D%5C'%C2%8F')))~ADD1%C2%84%C2%90')))~ADD2%C2%84%C2%91%26VAR!('%C2%92%2C('name!'%C2%93%22variables_%01%C2%93%C2%92%C2%91%C2%90%C2%8F%C2%8E%C2%8D%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_arrays_random

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'Wl%5DY%5DO%60%2C'8vlz%2C'jIb2k%5EE'~x!12~y!14~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D'%C2%80HANDLERPvariables_set'~id!'AX_04Yc-ac%2B%7BH0XV%2BKZ%5E%22VAR!('%7F%C2%80VALUEPlists_create_with'~id!'E.uOsm%3B%255%25sD%7C%2CxB%23sr%7C'~extraState!('itemCount!4%C2%80ADD0P%C2%81Hiy3kK%2CGYnHTh%60A.uQbK%22TEXT!'coconut')))~ADD1P%C2%81zbL%3F%3F8JL2QROR%5B8qS.vp%22TEXT!'Grapes')))~ADD2P%C2%81%25SMb%3D%60svzmc%7B8Hp(kvGB%22TEXT!'Apple')))~ADD3P%C2%81nZ-%3B%231lBxrWAz*bHr%2BUb%22TEXT!'Lychee')))))))~nextPwith_element_by_id'~id!'hOi*NlN%25Yu%5Dlx8r%3B45-e%22ID!'list'%C2%80STACKParrays_forEach'~id!'6GR%5E%25%2C8Kb4%3A%3D%25cw%40NsGW%22VAR!('%26%C2%80LISTP%C2%82%25Bk86)Fx6lgT%60)o%3B7Fv%23%22VAR!('%7F)))~DOPadd_element'~id!'DqyJ%7C3)j%25fn%24C)x%23z%2BG%60%22ELEMENT!'li'%C2%80STACKPset_content'~id!'(alHl)9N2r91ZWi7k%5D1%25'~inputs!('VALUE!('shadow!('type!'%C2%81%5BjsZnF%3B5s%3AYdb4-L%5Bo).%22TEXT!''))~block!('type!'%C2%82%7B%609)%3A%404%3BE8%7DE%3B%2Ft2%5Ena*%22VAR!('%26)))))))))))))))))))%5D)~variables!%5B('name!'fruit'~%7F%2C('name!'item'~%26%2C('name!'array'~id!'99%3DuT%2Fd.T'%3A-ra4%5BS%3At%7D-')%5D)~h!'%3Cul%20id%3D%5C'list%5C'%3E%3C%2Ful%3E')P!('block!('type!'%22'~fields!('%26id!'%5BQ9%60%24LYqeq%60gp%3FN2y3mi')%7Fid!'g%5Dv(%7D-a0Ql2mmbF%3FBQAs')%C2%80)~inputs!('%C2%81text'~id!'%C2%82variables_get'~id!'%01%C2%82%C2%81%C2%80%7F%26%22P_

https://blocks.codeyourfuture.io/#exercise_arrays_foreach

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'%5Ea_NwZUEW%2C'H'%3A%5B%3D_h0Qj8'~x!-413~y!-354%26TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%7FHANDLERzvariables_set'~id!'T%24a%5Dv4je%3AN%3AEZTR)a)*O%C2%81%7FVALUEzlists_create_with'~id!'e.5K%3Fh'%3Al%7B%2C'QGUo%7CL6QpP'~extraState!('itemCount!3)%7FADD0ztext'~id!'Tf%7DdsaUSV%60.Aw'%3A-xGn%5D2'%26TEXT!'Banana')))~ADD1ztext'~id!'7FL%2CNdqxC3IAG%2C'a_%3D%60Ud'%26TEXT!'Figs')))~ADD2ztext'~id!'ED%5EShhj3O.2G%2Cdbd*MQx'%26TEXT!'Cheery')))))))))))%2C('type!'element_clicked'~id!'%3Df%2C'k0n%5B%2CpsCe%2B%3D%7Cc%2Fkkh'~x!-412~y!-224%26TEXT1!'when%20the%20element%20with%20id'~ID!'button'~TEXT2!'is%20clicked')%7FHANDLERzwith_element_by_id'~id!'%3FGLN)%24%25kl7F%40_as%7BEf7f'%26ID!'list')%7FSTACKzcontrols_if'~id!'%7D8%23sCRj%5D%40f)%604tdj*s2D'%7FIF0zlogic_negate'~id!'GP(s%2BTA%7D4%3BS*Llggki1%3B'%7FBOOLzlists_isEmpty'~id!'JYPDw%2BD3ZPqB%7B%5EY%7CI.i%7D'%C2%80!!%5D8%2CMxMsSYYcG%23iwGP%3DV%C2%81))))))))~DO0zadd_element'~id!'JAIscN80'%3AbLh%2CAshk%2C%2Bb'%26ELEMENT!'li')%7FSTACKzset_content'~id!'%23%3DoDG9gxuq1%3DxP4%60V%3ARH'%7FVALUE!('shadow!('type!'text'~id!'mTky%3F%23s_%2C'xl.%23mb%7DNd%2C'%5B'%26TEXT!''))~block!('type!'arrays_getFirst'~id!'XB%7D%2CB0_EN%2Fyc%3AS%40BdrIF'%26MODE!'GET_REMOVE'~WHERE!'FIRST')%C2%80!'j%2C.%7D2W%7DZa'%3A%2B%40%5B'%3A.*%60aJn%C2%81)))))))))))))))))))%5D)~variables!%5B('name!'array'~%22%5D)~h!'%3Cul%20id%3D%5C'list%5C'%3E%3C%2Ful%3E%5Cn%3Cbutton%20id%3D%5C'button%5C'%3Ereveal%20next%20fruit%3C%2Fbutton%3E')z!('block!('type!'%22id!'%2C'Gb%3DQT6%24%5EqAWYswlDb%24%23')%26~fields!('%7F~inputs!('%C2%80%7FVALUEzvariables_get'~id%C2%81'%26VAR!('%22)%01%C2%81%C2%80%7F%26%22z_

https://blocks.codeyourfuture.io/#exercise_arrays_buttons

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'R%2C%7DlT33Asa54Hp%60.23(g'~x!-410~y!-383~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%C2%82HANDLER%22%C2%8Cce9Z%2Bk%7D%40.QBdUdIAMg4-%26VAR!('%7F)%C2%82%C2%88%3BE2e%7BsrFVNH)(%2CAa%2C'%7D6~%C2%86%C2%84xeWru%7DzcFl7GiH'%3ArFtm7%C2%8BKiwi')))~ADD1%C2%84TRF_U(X%7Dr8-NQemvQ%24UA%C2%8BApple')))~ADD2%C2%842sA%3AMyJmAE%249nCroZ%5B%5D5%C2%8BStrawberry'%C2%8A%C2%8CneX(o%2CLeS%7DS(V.d%7BY5WP%26VAR!('%C2%81)%C2%82%C2%88Gryx51x-Z-f4%3DQ%24.**ac'%C2%86%C2%84p'%3AmZo2l-NHXX2ii6thHa%C2%8B%F0%9F%A5%9D')))~ADD1%C2%84%7B4n%40Rg-96%3D5mly%7D%23K'%3Anu%C2%8B%F0%9F%8D%8E')))~ADD2%C2%84_Hiss%40vZU~%3AQxnMjkm9b%C2%8B%F0%9F%8D%93'%C2%8Awith_element_by_id'~id!'IaY5z%5DAMcBhAnGi%24%7BM9C%26ID!'list')%C2%82STACK%22controls_whileUntil'~id!'Jl(DS0F(2y%2F7At%2C%2B_6r-%26MODE!'UNTIL')%C2%82BOOL%22lists_isEmpty'~id!'xx%25yp%3AgF1%7C)EKZdxLQ%5Ei'%C2%80!'0w*%7CiehL%5BZYMsAJk%2FR%3At%26VAR!('%7F))))))~DO%22add_element'~id!'5CmxtGOeDLf_%3D7%5DX8v_j%26ELEMENT!'li%C2%89!'%3BZP%5EGN3%40DnUzB%7Cr%3FS%3A*T%C2%851sxld7%5B4%5B.r1bBr%5D5(ZN%26%C2%83%7BYy%7Bf3G%3FUe(Yu%409JRlk)%C2%87%C2%80!'lnAn.C%2F%2F%2C)(TKem_%5E7_M%26VAR!('%7F%C2%8Aadd_element'~id!'S02%2Cl%3F%2B%60facHmqiM0%5DU)%26ELEMENT!'span%C2%89!'px%3B1Dwqn%5EV%24xC.1LX*%40N%C2%85yr-%2C'm.97FBeoEs%40W-CCg%26%C2%83A'%3Acx3VST(h-bi7%7BY%3D%2C'(m%C2%87%C2%80!'J%5B%40chOB6-P%5DtTH%5DmyqjS%26VAR!('%C2%81)))))))))))))))))))))))))))))%5D)~variables!%5B('name!'fruit'~%7F%2C('name!'emoji'~%C2%81%2C('name!'array'~id!'WZq3C%23%2486H7Mh%5DBXx%3Fy%40')%5D)~h!'%20%20%20%20%3Cul%20id%3D%5C'list%5C'%3E%3C%2Ful%3E%20%20%20')%22!('block!('type!'%26'~fields!('%7Fid!'%3BVfHzR%7CQ.YKV1%7B3Oa2a%2C'')%C2%80%C2%82VALUE%22variables_get'~id%C2%81id!!oAW%7C(q%5Dnf%2F_WXkluHz%7C')%C2%82~inputs!('%C2%83TEXT!''))~block!('type!'arrays_getFirst'~id!'%C2%84%22text'~id!'%C2%85'%C2%82VALUE!('shadow!('type!'text'~id!'%C2%86~extraState!('itemCount!3)%C2%82ADD0%C2%87%26MODE!'GET_REMOVE'~WHERE!'FIRST')%C2%88VALUE%22lists_create_with'~id!'%C2%89')%C2%82STACK%22set_content'~id%C2%8A)))))))~next%22%C2%8B%26TEXT!'%C2%8Cvariables_set'~id!'%01%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_array_while_loops

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'8z%3A3.3kNu%3DxfO%25m1j%7C6o'~x!-351~y!-334%7FTEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%C2%82HANDLER%22variables_set'~id!'ASFE%2FZEHPn_CAXo'%3ABEE~%26%C2%82VALUE%22lists_create_with'~id!'0PohH%5D%23m_%2F(%23%3A1v%5BISNi'~extraState!('itemCount!5)%C2%82ADD0%C2%80*Z%3DYYPc.9JAnE%7D%7B-%25lI%3B'%7FNUM!0)))~ADD1%C2%80WJqWyx.Cb%5D_%7B.l%2F%23BZC%7B'%7FNUM!1)))~ADD2%C2%8063t.%3BqyDnQ%5D*mR2b%24iq%3A'%7FNUM!2)))~ADD3%C2%80p.ZTfdpr%2Fz%2F9c%60KyO%40bH'%7FNUM!3)))~ADD4%C2%80.%3Dd%23Ngfkc%3FVHp.'%3AGKcd%25'%7FNUM!4))))%C2%85xgb%2C31NR%3Dk%60.6b)7X%40zq'%7F%C2%87ntent'~id!'fRsl9sgS%5DIY.teTSS%24k2%C2%84ZDV%2B%2B%7C.NuL%2B%5E_sq%7Cymoi%C2%83Zb%2C'w*'%3A9%3FbISNjekqDs7%3A'%C2%82ARRAY%C2%813'%3A%40-%5D%5Eul%5B%24%3Arma6Rj%7BxD'%26)))))))))))))))%2C('type!'element_clicked'~id!'%7B0D6)%3Bg5bVjv1%2F%3FO%23vu5'~x!-351~y!-95%7FTEXT1!'when%20the%20element%20with%20id'~ID!'add_number'~TEXT2!'is%20clicked')%C2%82HANDLER%22arrays_getFirst'~id!'%7Brnhhs%3B'%3As'%3AQu%23%3Bg%5E%24%2C'Y6'~extraState!('isStatement!true)%7FMODE!'REMOVE'~WHERE!'FIRST')%C2%82VALUE%C2%81H_l(%247Qd%2CYFt_9%40%7D-%5Byw'%26)))~next%22arrays_push'~id!'NemU)iy%7B*mR*'%3A*c*ijEh'%7FWHERE!'END')%C2%82LIST%C2%81)e_Y8lFUe%3FYN%5EAW%5ER%2B0%23'%26%C2%85%3BH%23WW%5E-rR%3Dw67%2FZ%7Dw%3FIZ'%7F%C2%87ntent'~id!'D'%3A%40a%7Bj4sB8AH%7CUro_%23%7CY%C2%84gLYmZ%60znOZ.sQ21%2F%40fSv%C2%83j%25lKrpJ1%3B%7C(LR7AVg.*f'%C2%82ARRAY%C2%81%2C'JE7nAWpW%5D%60PoG%5EU6'%3Atx'%26)))))))))))))))))%5D)~variables!%5B('name!'numbers'~%C2%86%2C('name!'array'~id!'5Z%24V%23%2BXu%5BA%402A%25Eyl%25)b')%5D)~h!'%20%20%20%20%20%20%3Cp%3ETotal%20of%20the%20last%205%20numbers%3A%20%3Cspan%20id%3D%5C'total%5C'%3E%20%3C%2Fspan%3E%20%3C%2Fp%3E%5Cn%3Cinput%20id%3D%5C'number%5C'%20%2F%3E%5Cn%3Cbutton%20id%3D%5C'add_number%5C'%3Eadd%20value%3C%2Fbutton%3E')%22!('block!('type!'%26%7FVAR!('%C2%86)%7F~fields!('%C2%80%22math_number'~id!'%C2%81%22variables_get'~id!'%C2%82~inputs!('%C2%83'%7FTEXT!''))~block!('type!'get_sum'~id!'%C2%84'%C2%82VALUE!('shadow!('type!'text'~id!'%C2%85)))~next%22with_element_by_id'~id!'%C2%86id!'9)%3B2j-fm7JSG_F2U%7CPk%25')%C2%87ID!'total')%C2%82STACK%22set_co%01%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_arrays_add_sum

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B%C2%8AG%2CjN%7BXVW8%60ctk%2C'%3ADqgN%5B'~x!-274~y!962%C2%83%C2%86ME!'showResult%C2%81controls_if'~id!'E%7CrJP%7C2TW%23%24r%3Fd%24%2C'CqJX%C2%95elseIfCount!1~hasElse!true)%C2%8DIF0%C2%A3Z%5EsBv%7D08ziJY-ndtZk%2C'4'%7FOP!'EQ%C2%9EpX%3B%2FM%2C'%7Cs%7D5eUxMydd)Qx%C2%A0%C2%84l%4051%2BGmNYwsZ3w(cjOnk%26)))))~B%C2%84G'%3A%40%7CR-%5BB.%25FHruR8D(Vr%C2%A7)))))~DO0%C2%A6%23hiO2(()RP)QKzq3%2F%23MV%C2%A2info%C2%8B!'cz%5DWR62O%25me%24G3-%2C%60%3B_*%C2%80(rcC%40r%2C'4F69d%2CRzQklYs%C2%99you%20win')))))))))~IF1%C2%A3G_%5DHn%60KJ%2C'%24seKbrOa%5BTR'%7FOP!'LT%C2%9E%3B%23I-9%5BxlV%2C'%2FcR%7DkL7t%2Fg%C2%A0%C2%84EsMnWn0iUVohCE%25CU%7D%25*%26)))))~B%C2%84%5DeI%5E77U%2C'L%2B374nC_6qF%5B%C2%A7)))))~DO1%C2%A68Wp%5D%40S%7DFB89E6NPyBcL-%C2%A2info%C2%8B!'Tt2%2BCnfN%7C%2C'YM%24%3BW%2Bktl3%C2%80m%5DNO%2FCZu)l%60ET%60RQSy7D%C2%A9)))))))))~ELSE%C2%A6FaxVjf%25%40MBhLhU%2C'A(x%3Ac%C2%A2info%C2%8B!'k%2CKKWH3m2y%607%7B%3B%2C'Jj%23(J%C2%80H%3A%7D9vhYgD%5BS3%23C%5B%7DdmV9%C2%99you%20lost')))))))%C2%8FMx%2C'vg7P0yl.%400eX8S2%5D)'~x!-281~y!370%7F%C2%89oll%C2%92%22arrays_push'~id!'pJp%5EpXt.)8A0P.%5BnFCFn'%7FWHERE!'END')%C2%A4%22get_randomMember'~id!'*%2FQuExO(pW(lMM-kZ%7DR.%C2%A0%C2%84%7De9DKCq%3D%24-%3BQFZcK((ip%C2%98%C2%8E))))))~LIST%C2%84xBc%6075vS%23eiF%7BQdlNvsy%26))%C2%85d!'%5EEu%3A1I%7C%60LS%2FwU9P%5DP%5Dc0%C2%88info')))))))%2C('type!'on_start'~id!'%252SkKa1Uv%60b7G%60EiecEk'~x!-281~y!57%7FTEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%C2%8DHANDLER%C2%94%40WugwfUSA.mGj0%5B-%2F28Z%C2%98%C2%8E)%C2%8D%C2%93vKTwa%2C'vLD)riCR%3A%2F58QE%C2%9C6)%C2%8DADD0%C2%8C(zy%40cXM3%5BTMh%2594)-0%2Bm'%7FNUM!1)))~ADD1%C2%8CM%5EVFpL_P'%3AWnb%3BNs-cgsk'%7FNUM!2)))~ADD2%C2%8C%7C%2Fh)wWJDiK%5Ej%60Yo%3A%40%5B4%23'%7FNUM!3)))~ADD3%C2%8CE%609%2F%23887eb5dIZbI)%60y*'%7FNUM!4)))~ADD4%C2%8CtTc3j%25%7CBXNYgO*nECUeY'%7FNUM!5)))~ADD5%C2%8C%3D%60%24kF%2Fu%23%3A%5DNV3q%5E%60.Spa'%7FNUM!6)))))))~next%C2%94%2Fd5%7Bv%3A3p(vF42U)4_rY1%26%C2%8D%C2%93%3DuV.G%3AFRQKhiz%7Bx%60YkCW%C2%9C0))))~next%C2%94h%2C%3Fe9u1r%24o2WE4Z44%40%3DM%C2%A7%C2%A4%C2%8CX0r%25Ur)DwN(_%5By(%60%3Fu%7C%60'%7FNUM!11)))%C2%85d!'-yPb57Vn%3A'%3AUVS*hKW%7CpT%C2%88info'))))%C2%8FY-2%5D%7Dtc1h.(*V4.m%7C%231.'~x!-279~y!510%7F%C2%89emove%C2%92%22arrays_getFirst'~id!'kw*tLtod1'%3AOf'%3A*(RdjG%3F%C2%95isStatement!true)%7FMODE!'REMOVE'~WHERE!'LAST')%C2%A4%C2%84o%2F%3A%2Cl7.6H%60F%25c%3A0%7CFt%7B%3A%26))%C2%85d!'_6%60_'%3A1bNARRi%5Ba%3B3y_*k%C2%88info'%C2%8F.dNV%40%2ClFm.BAq.4zRRRp'~x!-278~y!624%7F%C2%89estart%C2%92%C2%94'%3A%2CpTg6AT6dlk(zBxM6jt%26%C2%8D%C2%93%3FW8C%7D%2BSD%7D6)%3D%2F%7D*JMIpF%C2%9C0)%C2%9AjvBO%5By%5Du%5E%60M%2CFc1%24.aC%24%C2%A2list%C2%81%C2%A5%5E)%3Fs%5BPl8%3FEBMEyzssR%2C'l'%C2%9AbR%2BgS03%3FMsS%5DwEOGQYfZ%C2%A2total%C2%8B!'RJpNIcm1%7CR7l%3B3SX%5DK%3Bf%C2%80r1d3-GQ8UN%409Yzg3gh8g%C2%990'))))%C2%9AA%3BPr%2FP4c%5E%2B%5EGA%60Mlfz4n%C2%A2total%C2%8B!'%3D*m2.6.fD%5EIH1%2Cy-%2C'86u%C2%80rpw%3Bx7N%3BoVM%24v*W7Q2ad%C2%A9%3A')))))%C2%97oI%5B8%60Z%2F)H5_8t7%60.Ys%3Ab'~x!63~y!60%C2%83%C2%86ME!'showtotal%C2%81%C2%82(f(FKSxWM939S5%5DQk%2Foa%C2%A2total%C2%8B!'%25N%7B%40)zzU*KQl3%3FJv-%401%3A%C2%80%24%5B_%3A%7BiBODj.2'%3Ab4ZP(1%2B%C2%A1get_sum'~id!'Z69%2C03Ye8%2B-%3B..sADY%2Fw%C2%A0%C2%845W%3BxW4%2Bk%5E_%3Bpj%2BhBAXdh%26)%C2%97%2CZ%5D%23_RF%2C%2C'cg30%2C'Q3Xow%3D'~x!-265~y!1423%C2%83%C2%86ME!'showRolls%C2%81%C2%82rf)8t%3B6T0y2Opt%7DfQcsk%C2%A2list%C2%81%C2%A5ZK*.gAzieUJM87wZ%5BB%3DT')))~next%22arrays_forEach'~id!'kJ_6H0I7Z%2F*%3D%23Gr6N0nb%C2%98%C2%91)%C2%8DLIST%C2%84b5%7C6dOX3%2Bmy%2CEeh%25z%2CoM%26))~DO%C2%A6%7Cf.ID%3FEXwkYLd*n-FxiK%C2%A2list%C2%81add_element'~id!'TV8%7D%2FFuM%3Fi4tUGO(%23%5D%5E%3D'%7FELEMENT!'li%C2%8B!'mlRJWT%60.8W%2446w0E%400AD%C2%80vZPI%60gJXx)%24jaUJ%25%2BLmG%C2%A1%C2%A8%3F2F_z%5BP_%7CP%2Bb%60%3Ft%3D5f%3B4%C2%98%C2%91)))))))%C2%97S%2C.7dps%3F%7DlDRTZ%24_JH%5BZ'~x!67~y!170%C2%83%C2%86ME!'showinfo%C2%81%C2%9Dd!!BcfM-V0%25%25%5B%5D%7B*z%60tEC6%C2%88Rolls'%C2%85d!'Y3DA%24z.cIlS(U%23p%5DBf%601%C2%88total'%C2%85d!'9qlmYh%24of%7BXM%25p%2B%3A1%40af%C2%88Result')))))))))%5D)~variables!%5B('name!'rolls'~%C2%96%C2%9Bgoal'~id!'%7B%2C.%24XVm5pTQaW%7BG%2C'%25Cm'%3A')%C2%9Bdice'~%C2%8E%C2%9Barray'~id!'%233r%24R_g'%3AZpQAmshXdA%3D%5B')%C2%9Btotal'~%C2%87%C2%9Bitem'~%C2%91%5D)~h!'%3Cp%3ESo%20far%20you%20have%20rolled%3A%3C%2Fp%3E%5Cn%3Cul%C2%9Flist%5C'%3E%3C%2Ful%C2%90oll%5C'%3ERoll%20the%20dice%3C%2Fbutton%3E%5Cn%3Cp%3ETotal%3A%20%3Cspan%C2%9Ftotal%5C'%3E0%3C%2Fspan%3E.%20%3Cspan%C2%9Finfo%5C'%3EKeep%20playing'%3A%3C%2Fspan%3E%3C%2Fp%C2%90emove%5C'%3ERemove%20the%20last%20roll%3C%2Fbutton%C2%90estart%5C'%3EStart%20again%3C%2Fbutton%3E')%22!('block!('type!'%26%C2%98%C2%96)%7F~fields!('%C2%80'%C2%A4!('shadow!('type!'text'~id!'%C2%81')%C2%8DSTACK%C2%A6with_element_by_id'~id!'%C2%83~icons!('comment!('text!'Describe%20this%20function..%C2%84%22%C2%A8%C2%85)~next%22%C2%9D%C2%86.'~pinned!false~height!80~width!160))%7FNA%C2%87id!'XVJV%5BdCyK%236V%2Cr3P%2Ff%2B%2B')%C2%88%C2%95name!'show%C2%89TEXT1!'when%20the%20element%20with%20id'~ID!'button_r%C2%8A('type!'procedures_defnoreturn'~id!'%C2%8B%C2%81set_content'~id%C2%8C%22math_number'~id!'%C2%8D~inputs!('%C2%8Eid!'K%5E%3BN7%5El%2C8%2B%7Cj%40x%7C%3DS9%3Dw')%C2%8F)))))))%2C('type!'element_clicked'~id!'%C2%90%3E%5Cn%3Cbutton%C2%9Fbutton_r%C2%91id!'XuNp%3F(aiqE%24li%24U%401%3Ac3')%C2%92'~TEXT2!'is%20clicked')%C2%8DHANDLER%C2%93VALUE%22lists_create_with'~id!'%C2%94%22variables_set'~id!'%C2%95'~extraState!('%C2%96id!'nTq%2Cl(Ag%60%5E%2BrxB)G_T%25u')%C2%97))))))))))))%2C%C2%8A%C2%98'%7FVAR!('%C2%99'%7FTEXT!'%C2%9A)))~next%C2%A6%C2%9B%2C('name!'%C2%9C%C2%95itemCount!%C2%9Dprocedures_callnoreturn'~i%C2%9E')%C2%8DA%22get_sum'~id!'%C2%9F%20id%3D%5C'%C2%A0'%C2%8DARRAY%C2%A1%C2%99'))~block!('type!'%C2%A2'%7FID!'%C2%A3%22logic_compare'~id!'%C2%A4%C2%8DVALUE%C2%A5remove_contents'~id!'%C2%A6%22%C2%82%C2%A7%C2%98%C2%87)%C2%A8variables_get'~id!'%C2%A9%C2%99keep%20going'%01%C2%A9%C2%A8%C2%A7%C2%A6%C2%A5%C2%A4%C2%A3%C2%A2%C2%A1%C2%A0%C2%9F%C2%9E%C2%9D%C2%9C%C2%9B%C2%9A%C2%99%C2%98%C2%97%C2%96%C2%95%C2%94%C2%93%C2%92%C2%91%C2%90%C2%8F%C2%8E%C2%8D%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_arrays_sum

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'94.-%2C(Q*tC%3Fkz3%60%7CDOps'~x!-566~y!-349%7FTEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%C2%80HANDLER%22variables_set'~id!'%5E4%3DjPWLU19G6V%40%2C0LSxx%26%C2%8C%22lists_create_with'~id!'%23%2FXP%3Ds%3FzsV%5EOb-fKywpV'~extraState!('itemCount!0%C2%82U(5.%5D%40srg%60ib6XzRcYE%3D'~x!-566~y!-278%C2%81%C2%83%C2%895Bd%3B%25Fn%23%2FCBb%40C%2BRD'%3AM%24'%7FID!'list%C2%8Badd_element'~id!'V6d-aytuh%3D%40qk(b.2%7D.E'%7FELEMENT!'li%C2%8Barrays_push'~id!'mKd-aLIjzLtvoZxLrXb%25'%7FWHERE!'END')%C2%8C%22get_input_data_with_id'~id!'*F%2F%2CsyK%40J%7C%5EPZZsThgO%2C''%7FTYPE!'string'~ID!'input')))~LIST%C2%85z4fz%3FA(h-C%7CO%5E%245b%2B.%25d%26)))~next%22set_content'~id!'FAJ'%3Ag%604rQW%5B.3Wp89W2-%C2%84!G2GXeOdbkDRr2Q(P%7B8%3A%C2%88arrays_getFirst'~id!'XjOS%3DMg%24jZbf%5D%5B%2CY%25T%25t'%7FMODE!'GET'~WHERE!'LAST')%C2%8C%C2%85nAu%23%3BmR%257VVqRsiYwO%2F0%26))))))))))%C2%82Fz%2C9VV%2FN0%2CDaP*nw%40yhz'~x!-563~y!-50%C2%81random_%C2%83%C2%89%7BzgF3R%3D5%7C%3DmC%2C%3ASZu%7CX%5B'%7FID!'random_name%C2%8Bset_content'~id!'p%2CYms%2B)))h%2FnFV8tqgWo%C2%84'kFk%40%3BJ*steP%2F%7B27Up%3A%3F%5E%C2%88get_randomMember'~id!'.%7Ct%3F*FG%5ES%7DRV%3DlS%5D%3A(_z'%C2%80ARRAY%C2%85%249%40%25Ha%3DaW'%3A1Q%23UgH%3BSG*%26)))))))))))))%5D)~variables!%5B('name!'names'~%C2%86%2C('name!'creat'~id!'W%7BHK%7C-%5Bg9P)%24O(.Uc%2FCQ')%2C('name!'array'~id!'nZ24eYZEbn)7%5Efj%60)cw%7B')%2C('name!'empty'~id!'w91Oyxs%5Dt2%7Csv%2C'Hwsc%5D*')%5D)~h!'%20%20%20%20%20%3Cp%3EPlease%20Enter%20Your%20Name%3A%3C%2Fp%C2%8Ap%3Eyour%20random%20name%3A%20%3Cspan%C2%87random-name%5C'%3E%3C%2Fspan%3E%3C%2Fp%C2%8Abr%C2%8Ainput%C2%87input%5C'%20%2F%3E%20%5Cn%3Cbutton%C2%87btn%5C'%3EEnte%C2%8Dbutton%C2%87random_btn%5C'%3Eselect%20facilitato%C2%8Dul%C2%87list%5C'%C2%8A%2Ful%20')%22!('block!('type!'%26'%7FVAR!('%C2%86)%7F~fields!('%C2%80~inputs!('%C2%81%7FTEXT1!'when%20the%20element%20with%20id'~ID!'%C2%82))))))))%2C('type!'element_clicked'~id!'%C2%83btn'~TEXT2!'is%20clicked')%C2%80HANDLER%C2%84'%C2%8C!('shadow!('type!'text'~id!%C2%85%22variables_get'~id!'%C2%86id!'I6KJsi%3Bkc%40Utup%2Cdrzn6')%C2%87%20id%3D%5C'%C2%88'%7FTEXT!''))~block!('type!'%C2%89%22with_element_by_id'~id!'%C2%8A%3E%5Cn%3C%C2%8B')%C2%80STACK%22%C2%8C%C2%80VALUE%C2%8Dr%3C%2Fbutton%C2%8A%01%C2%8D%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_random_facilitator

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!')%2BWE5g%2BL%5D*(%7B%7B.UW9GY%40'~x!25~y!-190~fields!('TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D%C2%9AHANDLER%C2%91(q%3F-_R%3A'%3A5%3B%7Bq%2BB%3F4Sr.D%C2%80%C2%87%C2%8EOk58%5DYE%24RC%23C%5BP%2C'x7YHa%C2%8A%22%C2%88lRko%7C%606%40Rppi'%3AH(4aV2)%C2%8C%C2%91E9HOx6Tu%3AL%40%3F%2CmAys8BE%C2%9B%C2%89)%C2%87%C2%8E%3FIx5J%3Apr9VQmCT%25bptF(%C2%8A%22%C2%88Xy%5D83EB9s6-E%25GaMtkqc%C2%8C%C2%91v%60%250aRKwU)%2Czi%2Fh0sUzd%C2%9B%C2%86)%C2%87%C2%8E%23pVI%2FyV8LR%24%2FVRe1%5BcKa%C2%8A%22%C2%88'%3A%60JNvACVrPE%7DD6.q%60%5EeF%C2%8C%C2%84Nf%24mmaM%2C'%7B_%2C'5jf%25y%2CL2A%C2%96%C2%81!'moAvgZ%7B.Zxi%2F2%2C%60%2C%5D%2Bp_'%7Feq%23E2dJuLJxdS%5B%5EW%5D0X-%C2%83%C2%88%5EY2)%7BL%3BV6%2Bc22F%7Bg%7BZZm%C2%8C%C2%846'%3AiDy%40ds(3%5B5p.RR5%23HR%26ID!'total-earn%C2%81!'*.%7BJwF8dc.Zuu%258kJah0'%7Fq4F%24N%7Chj*_2jD%5DKLe%7D.Y%C2%83%C2%88%7Da7i%5D-Bp)Z%2C'DQ%2F%3A%2C'5%23VL%C2%8C%C2%84rj2%3Bhs%5Bv%40D%7C%3A%5ExA7%7BJiV%26ID!'total-exp%C2%81!'%5DRR%7Cn3%3Ae%3F%23cA%2F%3F%7Btm%40q%2B'%7Fal%7CC%60sZLNLs-%2FDmI%5EPR3%C2%83%C2%88nHY%5EFdxmKJ%2Cdk%5DQDU'%3Ad*%26NUM!0%C2%92)))))%2C('type!'element_clicked'~id!'2qw1Ei%2BKy%256T*3AU%2F'%3ANd'~x!43~y!153~fields!('TEXT1!'when%20the%20element%20with%20id'~ID!'btn'~TEXT2!'is%20clicked%C2%9AHANDLER%C2%93%2F._BVuW0XYdT%5BY-%3BCsCo%26WHERE!'START%C2%9AVALUE%22get_input_data_with_id'~id!'f%7B0jQYG%5B%7DHt8zG2A'%3A2E%5D%26TYPE!'number'~ID!'input'%C2%9D)8y7dDSxvH%60AF%24-Ayl%2C'Z%C2%80)))~next%22controls_if'~id!'%25Yaz%7D0iRC.Vy3ZAbZM%3B%40'~extraState!('hasElse!true)%C2%87IF0%22logic_compare'~id!'%5D%23h56-xjvwt'%3AE%23GR7Y(5%26OP!'GT%C2%9AA%22%C2%8B%7CZAZ%7Cn%23uezCkn6jv3%7DV4%C2%85E%C2%82'QJ%600h)iN%23%3BFN%3B2W%5DV%60Hf%C2%80)))))~B%22%C2%88RnSRJE%2FMd-'%3A)oN%2F1YZJB%26NUM!0))))))~DO0%C2%847zUxL8T%3B-FEEx(wy.u*o%26ID!'earn_list%C2%9ASTACK%C2%93JB%3FpNPhd7%7Da%3AVrPoPwHn%C2%9C%22%C2%8Bp8u08fS%3AElI%23EGE(sM%3BE%C2%85E%C2%82')qO%3D%25%40So9P%7CxB%24'%3A%5BXtgt%C2%80))%C2%9D_cn131U%5E%60Qu*~%3AGyH(%2FX%C2%9B%C2%89%C2%98S%5EaexI6LJyD%2FPd5lb%2C1c%26ELEMENT!'li%C2%81!'9Y%3DIRat8v(ACZ%5EeltrJ~%7Fybr%24'%3Ae-dK%2FH%2CiJJwQ%7DHO%C2%83%C2%8Bj0v0q%60%3ALHS%5D9%25%5BBOBpJX%C2%85E%C2%82!3xmjuH%3BWD6g'%3A%405l3(Y0%C2%80%C2%92~ELSE%C2%84(%3DUMK%25%5BX*ARxAND8u-F%5D%26ID!'exp-list%C2%9ASTACK%C2%93%2B%2CLwWN%24Kpi6fXGqG0X%3FB%C2%9C%22%C2%8B-)wLZM0ASahaa0wi%5DUwa%C2%85E%C2%82'X%2C'e2o%3FE8Cl(%40YUKICDmw%C2%80))%C2%9DkEf%25%2C''%3A1%3A(opJRI%3B*8%7D_%3F%C2%9B%C2%86%C2%98pv0SE%7C3%3Fqlr%40-0Bo%2Fvgl%26ELEMENT!'li%C2%81!'B_%3D%25i%2F%3B%7B*Ki4hSuYbT%3DV'%7FP9%5BsnJYn0_b%5D)i2atzH6%C2%83%C2%8B%23hUXl%2F%3DOV(q%3Fut*8P%7D)K%C2%85E%C2%82'Rz%25(Alht%2FvQ4%3B1fW%3AV.%7C%C2%80%C2%92)~next%C2%84hQZHU%5EkLg%23Vy%40%3FDd1QFR%C2%96%C2%81!'24Am0S51LpZ-9U.7Q%3Fsw'%7F%C2%90%C2%94PEpH4wd%2Cb%2C'%3A(gyc%3FYp6E'%C2%87ARRAY%C2%82'e2V*%3BHtGxVn3%7BH67%60zg7%C2%80)))))))))~next%C2%84%602Pl%7CD'%3AF%2BO5w%2BnGlaNsq%C2%96%C2%81!'PPxNn%3Fo.%5E-_%7C%5BvtQWkc%24'%7F%C2%90%C2%94A.pY%25EU2)TArE%252En'%3Alc'%C2%87ARRAY%C2%82'N%5EB%2FTq'%3AVZYYNISs%3DgNS3%C2%9B%C2%89))))))))))~next%C2%84AC%3A%2C'zVw%25tnw%3APj8D%7C%5EE_%C2%96%C2%81!'%40JDZ%3Df7Vk%2BS%60Cq%60z%7BV%5B7'%7F%C2%90%C2%94IIRz(hSh%2CSR1j%60jQmxv2'%C2%87ARRAY%C2%82'j8.r)%3DGATJ9uDwkRM%3B'%3Ap%C2%9B%C2%86%C2%92))))))%5D)~variables!%5B('name!'balance'~%C2%97%2C('name!'earning'~%C2%89%2C('name!'Expenses'~%C2%86%2C('name!'array'~id!'gc%608cdt)codp-qk5'%3AmwZ')%5D)~h!'%3Cinput%C2%95input%5C'%2F%3E%20%3Cbutton%C2%95btn%5C'%20%3EEnter%3C%2Fbutton%3E%5Cn%3Cp%3EEarnings%C2%8Ftotal-earn%C2%9Earn%C2%99%20%20%20%20%20%5Cn%3Cp%3EExpenses%C2%8Ftotal_exp%C2%9Exp%C2%99%3Cp%3EBalance%C2%8Fbalance%C2%8D%20%20%20%20%20%20')%22!('block!('type!'%26'~fields!('%7F%C2%87VALUE!('shadow!('type!'text'~id!'%C2%80%C2%9B%C2%97)%C2%81%C2%9ASTACK%22set_content'~id%C2%82%22variables_get'~id!%C2%83%26TEXT!''))~block!('type!'%C2%84%22with_element_by_id'~id!'%C2%85%26MODE!'GET'~WHERE!'LAST%C2%9AVALU%C2%86id!'nt%24.H(%7B.F%2B8N1%234V%7D*8%5E%C2%9A~inputs!('%C2%88math_number'~id!'%C2%89id!'SK8XRkhn%2FAl0_kBVJ*pT')%C2%8A'~extraState!('itemCount!1)%C2%87ADD0%C2%8Barrays_getFirst'~id!'%C2%8C%26NUM!0)))))))~next%C2%8D%5C'%3E%3C%2Fspan%3E%3C%2Fp%3E%20%C2%8EVALUE%22lists_create_with'~id!'%C2%8F%3A%20%3Cspan%C2%95%C2%90BXcK4C2LA5Rp5%2C'L%3Ffafk%C2%91%22variables_set'~id!'%C2%92))))))))))))))))%C2%93%22arrays_push'~id!'%C2%94%C2%83get_sum'~id!'%C2%95%20id%3D%5C'%C2%96%26ID!'balance%C2%97id!'BBQz%7DCJrysdji%5DuFkuUA')%C2%98))))~next%22add_element'~id!'%C2%99_list%5C'%3E%3C%2Ful%3E%5Cn%C2%9A')%C2%87%C2%9B%26VAR!('%C2%9C%26WHERE!'END%C2%9AVALUE%C2%9D)))~LIST%C2%82'%C2%9E%C2%8D%5Cn%3Cul%C2%95e%01%C2%9E%C2%9D%C2%9C%C2%9B%C2%9A%C2%99%C2%98%C2%97%C2%96%C2%95%C2%94%C2%93%C2%92%C2%91%C2%90%C2%8F%C2%8E%C2%8D%C2%8C%C2%8B%C2%8A%C2%89%C2%88%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_

https://blocks.codeyourfuture.io/#exercise_earnings_expenses

Image

nazaninsaedi commented 1 year ago

https://blocks.codeyourfuture.io/share.html?v=('j!('blocks!('languageVersion!0~blocks!%5B('type!'on_start'~id!'nA2)iS%24-UH%5D.mgjU%3BZGX'~x!10~y!8%26TEXT1!'at%20the%20start%20%7Bwhen%20run%20is%20clicked%7D')%7FHANDLER7variables_set'~id!'(M%2F%2C'3YP%7C.%2C'2qSX%40%7D0jQE%22%7FVALUE7lists_create_with'~id!'%2C'XWvFzbq%3FX%5EKd%24u2S2xH'~extraState!('itemCount!0))))))))%2C('type!'element_clicked'~id!'6ifCeh%2CPfbslhoY2N%2C'nQ'~x!10~y!82%26TEXT1!'when%20the%20element%20with%20id'~ID!'enter'~TEXT2!'is%20clicked')%7FHANDLER7arrays_push'~id!'tC*iM%3DKfY9Yx4)k6Qf%7D%23'%26WHERE!'END')%7FVALUE7get_input_data_with_id'~id!'qn%3F5v%5D%5DB6jTwBDyTq%5B1H'%26TYPE!'string'~ID!'comment')))~LIST%C2%81%60WI'%3Ao%2Cqt1_)C%7D%60I%2Cs2)Y%22)))~next7with_element_by_id'~id!'%7CfIyYg%5BtNeN%2C'6fHFrvvN'%26ID!'list')%7FSTACK7add_element'~id!'XOD%60%7DJ%5Dro%2C'OG%60%23p%5Dl*wo'%26ELEMENT!'li')%7FSTACK7set_content'~id!'%7CF21BGXNUGjz9%7DqO%23%3B%2C'%7D'%7FVALUE!('shadow!('type!'text'~id!'sIW2YDHNFGv31pwS2O8I'%26TEXT!''))~block!('type!'arrays_getFirst'~id!'RDCeXsO%5DygAP8%250mT%2Be('%26MODE!'GET'~WHERE!'LAST')%7FVALUE%C2%81%25%3Dor8*%24mZ%3Dfv%3A1fc%25%2FLZ%22))))))))))))))))))%5D)~variables!%5B('name!'comments'~%C2%80%2C('name!'array'~id!'sok%7D_bMYmF%25C%5B2%23%3ALc%5DG')%5D)~h!'%20%20%20%20%20%20%3Ch1%3EMotivate%20me%20with%20your%20comment%3C%2Fh1%3E%5Cn%3Cul%20id%3D%5C'list%5C'%3E%3C%2Ful%3E%5Cn%3Cp%3EWrite%20your%20comment%20here%3C%2Fp%3E%20%5Cn%3Cinput%20id%3D%5C'comment%5C'%2F%3E%20%5Cn%3Cbutton%20id%3D%5C'enter%5C'%3EEnter%3C%2Fbutton%3E')7!('block!('type!'%22'%26VAR!('%C2%80)%26~fields!('%7F~inputs!('%C2%80id!'0LauPGB31%2B%2B%3B%24(%40zl)2%2F')%C2%817variables_get'~id!'%01%C2%81%C2%80%7F%26%227_

https://blocks.codeyourfuture.io/#exercise_list_consolidation

Image

JayMayer commented 1 year ago

Hi @nazaninsaedi, this submission for blocks Week 2 looks good. Just be careful that this is the same as the Week 1 issue that you've copied!