+ 1

What does % sign do in python

21st Mar 2018, 4:41 AM
Pranav Tirlotkar
Pranav Tirlotkar - avatar
2 ответов
+ 1
Ok so % stands for remainder
21st Mar 2018, 4:51 AM
Pranav Tirlotkar
Pranav Tirlotkar - avatar
+ 1
It is not always used as remainder, though. It is sometimes used (and kept in Python 3 as a compatibility feature) for string formatting.
21st Mar 2018, 8:45 AM
Amaras A
Amaras A - avatar