python tutorial for cbse computer science syllabus
The first lesson - Python programming. www.python4cbse.com : complete lessons are available on www.python4cbse.com
hello welcome to Python Tutorial
this is my third lesson in this lesson
we will see how Python
Shell is acting as an interpreter
or how it is acting as a simple
calculator
we can how
expressions here in this interpreter
we can type expressions
the python will calculate the values
and it will
print the result. The expression
syntax is straightforward and it is
simply just like the mathematical
operations we how on a mathematical
operators plus minus the division etc.
and it will work same as
the other languages likes C, C++, Java etc.
parentheses are used for grouping the
expressions
we will see some examples we have to
prepared the expressions
hear on the screen here we have typed
2 plus 2 and press the Enter
we got the answer
4
so it is just like a calculator
if you want to the difference so you can use
minus operator here
here we can type
2 -2 in the prompt area so
two-minus two the answer is 0
and we can try division operator
slash (/) is the division operator used
so we will type
2 / 2 and
get the answer
1.0 here
and next
we work multiplication application operator
for
multiplication are using
star operator in computer programming
languages
so 2 * 2
and press Enter we will get the
answer
2 into 2 is
4 is the answer
answer is four
if you want a little complicated not
that complicated even then
2 * 2 * 4
if you want to have
more calculations like this so
2 * 2 4* 2 is 8
16
so the value is calculated and it is
being displayed here
if you want have express sense so
express with some
preferences priorities of operations we
can use
at parentheses to support that priority of
operation
so the have an expressionhere
50 minus 5 into 6 by 4
so 4 is outside the practices so that
divided by 4 will be
calculated at the end
so fast the ones which are
given in the in brackets
the parentheses
and after that the out side ones
we got the answer it is
5.0 , this way we can use the expressions
expressions in Python
if you want do integer division
in the previous division
we got 1.0
if u want to
sorry if you want a floor values
for example
7//3 // is the operator for
integer division
answer is 2
but if you give 7/3 the normal division
we will be getting the answer 2.33 so the
value
in double slash in the integer division
the value is floored
and we got the answer 2 instead of 2.3
so this is the way of python
interpreters
as it is used as a calculator
we can use almost the operators here
it is in that basic mathematics I
suppose the
explanations the lessons are easy
simple
so if you like the video please like it
comment on it for your comments
and doubts
please subscribe the channel for
getting more videos
thank you for watching this video by
have a nice day
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «python tutorial for cbse computer science syllabus», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.