0

Python - code meaning

I've run into % sign. What does this mean?

2nd May 2018, 6:17 PM
Cathy Thomas
3 Réponses
+ 3
Often modulus, unless the context is string formatting: x = "World" print("Hello %s" % x) Hello World
2nd May 2018, 7:19 PM
Kirk Schafer
Kirk Schafer - avatar
2nd May 2018, 6:43 PM
davy hermans
davy hermans - avatar