Шартты мәліметтер

Страницы: <<  <  1 | 2 | 3

r/> As we know algorithm is devided three types. What are they?

So todays topic is "Conditional statements IF/ELSE". The aim of the lesson is
-to apply if statement;
-identify comparison operators;
-apply if/else statements.
At first lets learn new terms.
Lets repeat after me todays new terms.
English
Kazakh
Russian
to boil
Қайнату
кипятить
conditional
Шартты
условный
condition
Шарт
условие
indentation
Шегініс
отступ
comparison
Салыстыру
сравнение
value
Мән
значение
variable
Айнымалы
переменная
Open your books and page number 50. First read the text yourself then share in your groups.
Group 1 - subtitle "Condional statements"
Group 2 - subtitle "Comparison operators"
Group 3 - subtitle "If/else statement"

Video

Lets do two tasks in python for understanding.
For example, suppose you want to find the larger of two numbers. Of course, there is a built-in function max() that does just this (and more) that you could use. But suppose you want to write your own code from scratch.
aint(input (Enter number:))
bint(input (Enter number:))
if ab:
print (a)
else:
print (b)
If temperature outside reaches -30 degrees, school will cancel the lessons. So let us write a code that will check if it is possible to stay home or not.
Int tempint(input ("Whats temperature today!"))
if temp

Страницы: <<  <  1 | 2 | 3
Рейтинг
Оцени!
Поделись конспектом: