Материалдар / Conditional statements (IF/ELSE)

Conditional statements (IF/ELSE)

Материал туралы қысқаша түсінік
apply if statement, identify comparison operators, apply if/else statement
Авторы:
Автор материалды ақылы түрде жариялады. Сатылымнан түскен қаражат авторға автоматты түрде аударылады. Толығырақ
11 Ақпан 2019
551
0 рет жүктелген
770 ₸
Бүгін алсаңыз
+39 бонус
беріледі
Бұл не?
Бүгін алсаңыз +39 бонус беріледі Бұл не?
Тегін турнир Мұғалімдер мен Тәрбиешілерге
Дипломдар мен сертификаттарды алып үлгеріңіз!
Бұл бетте материалдың қысқаша нұсқасы ұсынылған. Материалдың толық нұсқасын жүктеп алып, көруге болады
img_page_1
Ресми байқаулар тізімі
Республикалық байқауларға қатысып жарамды дипломдар алып санатыңызды көтеріңіз!
Материалдың қысқаша түсінігі
Conditional statements (IF/ELSE) Theme of today's lesson : Learning objectives: apply if statement, identify comparison oper

1 слайд
Conditional statements (IF/ELSE) Theme of today's lesson : Learning objectives: apply if statement, identify comparison operators, apply if/else statement

1 слайд

Conditional statements (IF/ELSE) Theme of today's lesson : Learning objectives: apply if statement, identify comparison operators, apply if/else statement

Key words and phrases: software , input, output, process, syntax , phrase, source, variable ,value, conditional, indent

2 слайд
Key words and phrases: software , input, output, process, syntax , phrase, source, variable ,value, conditional, indentation , select

2 слайд

Key words and phrases: software , input, output, process, syntax , phrase, source, variable ,value, conditional, indentation , select

We begin the lesson with game “If…….then…….else’ Example: First group: If you don’t dress warmly in winter……. Second grou

3 слайд
We begin the lesson with game “If…….then…….else’ Example: First group: If you don’t dress warmly in winter……. Second group: you'll get sick/ Second group : In winter you need to dress warmly. First group: you'll get sick

3 слайд

We begin the lesson with game “If…….then…….else’ Example: First group: If you don’t dress warmly in winter……. Second group: you'll get sick/ Second group : In winter you need to dress warmly. First group: you'll get sick

Let’s do the task “WordSearch”.

4 слайд
Let’s do the task “WordSearch”.

4 слайд

Let’s do the task “WordSearch”.

software input output process Syntax phrase source variable value conditional indentation select

5 слайд
software input output process Syntax phrase source variable value conditional indentation select

5 слайд

software input output process Syntax phrase source variable value conditional indentation select

Ask the questions: What does the input mean? What does the output mean? What is variable? Write operators for input? Write oper

6 слайд
Ask the questions: What does the input mean? What does the output mean? What is variable? Write operators for input? Write operators for output?

6 слайд

Ask the questions: What does the input mean? What does the output mean? What is variable? Write operators for input? Write operators for output?

Input is a data to solve a problem Process is aktivites to get a resuit Output is a result of a problem Variable is a memory are

7 слайд
Input is a data to solve a problem Process is aktivites to get a resuit Output is a result of a problem Variable is a memory area for storing data and having its own name. i. x=input(“Enter the data”) – gets data as string ii. a= int(input(“Enter the data”)) – gets the data as int (number) iii. a,b,c= map(int,input(“Enter 2 variabels:”).split()) - gets three data as int print(“Hello world”) print(“I am happy to study Pyton”) print(a)

7 слайд

Input is a data to solve a problem Process is aktivites to get a resuit Output is a result of a problem Variable is a memory area for storing data and having its own name. i. x=input(“Enter the data”) – gets data as string ii. a= int(input(“Enter the data”)) – gets the data as int (number) iii. a,b,c= map(int,input(“Enter 2 variabels:”).split()) - gets three data as int print(“Hello world”) print(“I am happy to study Pyton”) print(a)

Playing a game “Kahoot”

8 слайд
Playing a game “Kahoot”

8 слайд

Playing a game “Kahoot”

Activity: “Fill in the table of operators”

9 слайд
Activity: “Fill in the table of operators”

9 слайд

Activity: “Fill in the table of operators”

operator operation Example eguation Example code result + addition 3+2 a=3+2 a=5 - substraction 3-2 a=3-2 a=1 * multiplic

10 слайд
operator operation Example eguation Example code result + addition 3+2 a=3+2 a=5 - substraction 3-2 a=3-2 a=1 * multiplication 3∙2 a=3*2 a=6 / dinision a=10/2 a=5 // floordivision N/A a=10//3 a=3 ** power a=2**3 a=8 % modulus N/A a=8%3 a=2 > greater 5>3 5>3 if 5 is greater than 3 yes < less 5<3 5<3 if 5 is less than 3 no >= greater or equal 5≥3 5>=3 if 5 is greater or equal to 3 yes <= Less or equal 5≤3 5<=3 if 5 is less or equal to 3 no == equal 5=3 5==3 if 5 is equal to 3 no != not equal 5≠3 5!=3 if 5 is not equal to 3 yes

10 слайд

operator operation Example eguation Example code result + addition 3+2 a=3+2 a=5 - substraction 3-2 a=3-2 a=1 * multiplication 3∙2 a=3*2 a=6 / dinision a=10/2 a=5 // floordivision N/A a=10//3 a=3 ** power a=2**3 a=8 % modulus N/A a=8%3 a=2 > greater 5>3 5>3 if 5 is greater than 3 yes < less 5<3 5<3 if 5 is less than 3 no >= greater or equal 5≥3 5>=3 if 5 is greater or equal to 3 yes <= Less or equal 5≤3 5<=3 if 5 is less or equal to 3 no == equal 5=3 5==3 if 5 is equal to 3 no != not equal 5≠3 5!=3 if 5 is not equal to 3 yes

• Format of conditional: a = 1 if a > 2 : print ( "H" ) else : print ( "L" ) a = 3 if a > 2 : print

11 слайд
• Format of conditional: a = 1 if a > 2 :     print ( "H" ) else :     print ( "L" ) a = 3 if a > 2 : print ( "H" ) else : print ( "L" )

11 слайд

• Format of conditional: a = 1 if a > 2 :     print ( "H" ) else :     print ( "L" ) a = 3 if a > 2 : print ( "H" ) else : print ( "L" )

• Practice 1 Open page number 51. Do this exercise for practice. Practice 2 Sid down at computers and do the this task ” Is th

12 слайд
• Practice 1 Open page number 51. Do this exercise for practice. Practice 2 Sid down at computers and do the this task ” Is the number even?” number = int(input( "Введите число: " )) if (number% 2 == 0 ): print ( "Четное число" ) else : print ( "Нечетное число" )

12 слайд

• Practice 1 Open page number 51. Do this exercise for practice. Practice 2 Sid down at computers and do the this task ” Is the number even?” number = int(input( "Введите число: " )) if (number% 2 == 0 ): print ( "Четное число" ) else : print ( "Нечетное число" )

Осы аптаның ең үздік материалдары
Педагогтардың біліктілігін арттыру курстары
Аттестацияда (ПББ) 100% келетін
тақырыптармен дайындаймыз
Аттестацияда (ПББ) келетін тақырыптар бойынша жасалған тесттермен дайындалып, бізбен бірге тестілеуден оңай өтесіз
Өткен жылы бізбен дайындалған ұстаздар 50/50 жинап рекорд жасады
Толығырақ