{%hackmd BJ-DJz7nt %} # Bare Bears S4C2: While Loop part 2 ###### tags: `Programming` `CS` `Python` `CWL` [TOC] ## Wisdom of the Day (15 mins) ![](https://hackmd.io/_uploads/rkqfsNN75.jpg =400x200) > Using your body, speech, and mind to serve a sentient being, so he or she can have a little bit of happiness. This is the benefit we have as a human being. Why would we want to serve all the people humbly with respect? It's because this is the cause of being a highly regarded person in the future lives. ==Q1== Why do you think "Using your body, speech, and mind to serve a sentient being, so he or she can have a little bit of happiness." is the cause of being a highly regarded person in the future? Is there any evidence support this? ## Homework Review ### OMAK Share your homework ^^ > Write an OMAK to you and your own classmates, based on a true event ### Practices #### Review question(do it agin) ![](https://hackmd.io/_uploads/Hkd4hsbQq.png =400x300) [Series 1](https://snakify.org/en/lessons/for_loop_range/problems/series_1] \) - Write down your thoughts after you finished the questions for the 2nd time > - Is it hard for you to do it the 2nd time? > - Why is it hard in the 1st time? > - Is the concept itself hard for you now? > - Why will we be afraid of learning something we don't know? #### While loop ==put your code in your note ^^== (a) Write a While loop to print out 1 to 100 (b) Write a While loop(only 1 while loop) to print out 50 times "Be happy!" and 50 times "And be sincere!" ## In Class ### Python: While Loop ^^ ==Questions== - [Least divisor](https://snakify.org/en/lessons/while_loop/problems/least_divisor/) - [The Power of two](https://snakify.org/en/lessons/while_loop/problems/powers_of_two/) ### Roblox: If-else-elif ![](https://hackmd.io/_uploads/S17FESVQ9.jpg) - [documentation](https://www.lua.org/pil/4.3.1.html) ## Homework ### OMAK Write an OMAK on the "For Loop" section! > Suggest you go back to the for loop section, and redo it again, think of the improvements you have~ ### Practices #### While loop ==Questions== - [Morning Jog](https://snakify.org/en/lessons/while_loop/problems/morning_jog/) - [The length of the sequence](https://snakify.org/en/lessons/while_loop/problems/seq_len/)