{%hackmd BJ-DJz7nt %} # Bare Bears S3C5: Teaching For loop time ###### tags: `Programming` `CS` `Python` `CWL` ## Homework Review ### Python **Product of N numbers** N numbers are given!The first number is telling how many numbers are there to times. Find out their product. - Input > (1) 3, 2, 3, 10 > (2) 5, 4, 2, 1, 10, -5 - Output > (1) 60 > (2) -400 ### OMAK Doing OMAK on one of your past memory 😀 > ex. >past memory means like something happened in your 2nd grade or a trip you had before, using that experience to find out your good deeds and others good deeds ^^ ## Sharing your 2022 goal 🕊️ ![](https://hackmd.io/_uploads/SJyu9O7kc.jpg =400x350) - ==New Year Reflection & Looking forward 🕊️== - What's your growth in these 4 months - What have you done well in these 4 months - Why do you think you are able to do well and grow happier and positively - Setting your 2022 goals! ## Homework ### Practices ==Learn to explain the questions and your code to others== You need to prepare your code and practice your explanation at home. And, you will explain the question, your solving logic, and your code in class ^^ - Jason :[Adding Factorials](https://snakify.org/en/lessons/for_loop_range/problems/sum_of_factorials/) - Janet : [Ladder](https://snakify.org/en/lessons/for_loop_range/problems/ladder/) - Sophia: [Series - 2](https://snakify.org/en/lessons/for_loop_range/problems/series_2/) ==Programming Questions== **Q1. First N even, descending** Given an integer N, print all the even numbers from 0 to N in descending order. - Input > test 1: 8 > test 2: 11 - Output > test 1: 8, 6, 4, 2, 0 > test 2: 10, 8, 6, 4, 2, 0 **Q2. Squares in range** Given two integers A and B, print squares of all integer numbers between them, as shown below. There shouldn't be any spaces around * and =. The sep argument of the function print() may help you with that. ![](https://i.imgur.com/7cEz1Qq.png) ### OMAK - Audio file - OMAK notes(just as usual) Record one of your past memory in the past, and tried to do the OMAK to it using your personal style ^^