Modulo Operator In Python

preview_player
Показать описание
The modulo operator (%) in Python is a useful tool that provides the remainder after dividing operand 1 by operand 2. In this video we will talk about what the modulo operator is in Python, how the modulo operator works in Python and a few examples of how to use the modulo operator in your codes.

This timeline is meant to help you better understand how to use the modulo operator in Python:
0:00 Introduction.
0:10 Modulo Operator explanation.
1:25 Determining even vs odd numbers using the modulo operator.
1:52 Converting units using the modulo operator
2:55 zeroDivisionError explanation.
3:14 Outro

Follow & Support StudySession:

What is Python and why you should learn Python? Python programming, in particular Python 3, is a growing programming language that is loved by many programmers due to its simple syntax and ease of use. Python allows for relatively easy debugging of your codes and there are many beautiful Python IDE’s available for free to make coding more enjoyable. Python is also very popular among Data Scientists and many machine learning applications.
#studysession #python #programming
Рекомендации по теме
Комментарии
Автор

Thankyou, I was doing a online beginners python course. They quickly brushed over this and I didn't understand. This provided the actual help I needed, plus showing a practical application was helpful also.

willyb
Автор

Finally an explanation I understand 😊 thanks!!!!

MisterSkraetsch
Автор

oh my god, thank you so much! I wasn't able to understand this at all but now I get it!

chinmayikalapatapu
Автор

Your video explained it well but I was struggling to keep up with the typing.
As instead of focusing on what you were saying, I was trying to keep up and understand your typing which made listen less to what you were saying.

radjared
Автор

If I do 1 % 5 I get 1. How can that be?

raba
visit shbcf.ru