what is the function of '%' operator in python???
Share
what is the function of '%' operator in python???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
The %s operator lets you add a value into a Python string. The %s signifies that you want to add a string value into a string. The % operator can be used with other configurations, such as %d, to format different types of values.
Answer:
Answered
Explanation:
It is used for Modulus.
Modulus means the remainder.
Eg: 4%2 =0 .....Remainder is 0 when 4 is divided by 2.
Eg2: 4%3= 1.....Remainder is 1 when 4 is divided by 3.
HOPE IT HELPS
PLS MARK AS BRAINLIEST