0

What does % do in python?

I have seen my professor and some of my classmates use this, but I can figure out what it is used for... Any help would be greatly appreciated 😄 thanks

21st Sep 2018, 2:32 PM
Tori W
Tori W - avatar
3 Respostas
21st Sep 2018, 3:31 PM
Kapil Bansal
Kapil Bansal - avatar
+ 5
% can also be used for string formatting. print("hello %s", % ("world"))
21st Sep 2018, 4:02 PM
LONGTIE👔
LONGTIE👔 - avatar
21st Sep 2018, 3:03 PM
davy hermans
davy hermans - avatar