{%hackmd BJ-DJz7nt %}
# Bare Bears S4C2: While Loop, let's go go go!
###### tags: `Programming` `CS` `Python` `CWL`
[TOC]
## Wisdom of the Day (15 mins)

> Everyone is the CEO of their lives after lives.
You make up the decision, whether you are going to make efforts about the current benefits or you want to pay attention to the longer profits.
>
>Use your eyes, ears, nose, tongue, body and mind to run your own company. The longer vision you possess, the more profits you shall win!
==Q1==
What's the meaning of that you are the CEO of your own life?
==Q2==
Why the longer you see, the more profits you get?
## Homework Review
### Writing an OMAK of your sibilings
[Slide: My sister and I](https://hackmd.io/@kuangkao-peace/HyhjLJsfq#/)
- Your good deeds toward him/her
- Her good deeds toward you/others
- A lovely memory with a picture
### Destroy an element
{%youtube 2SJ-RXNz35g %}
Create a model in a Roblox environment, and learn to write a script to destroy it 🤣🤣🤣. There are 2 things to be done.
- Count how many elements are there in the model
- Destroy the element with a for loop
==Steps==
- [x] Choosing a model in the toolbox
- [x] Creating a script in the model
- [x] Setting a local variable
- [x] Writing a for loop to count number of elements
- [x] Writing a for loop to destroy every parts of the elements
### OMAK
Playing your story with [livecodingyoutube](https://livecodingyoutube.github.io) along with some videos on Youtube. 😎
- [livecodingyoutube functions list](https://livecodingyoutube.github.io/doc/index.html)
## In Class
### Review: If-else
- [Minimum of three numbers](https://snakify.org/en/lessons/if_then_else_conditions/problems/minimum3/)
## Homework
### OMAK
Write an OMAK to you and your own classmates, based on a true event
### Practices
#### Review question(do it again)

[Sum of N numbers](https://snakify.org/en/lessons/for_loop_range/problems/suf_of_n_numbers/)
- 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!"