What is the purpose of the d in "%02d"?


I don’t understand what a signed integer is. Could someone please explain to me?

Strings and Console Output


to understand this we need to look at C:


here we see unsigned and signed integers. But in python, you will mostly use signed integers (also just called integers), small change you will deal with unsigned integer

for now you can just assume that integer and signed integer mean the same thing in python


signed integer are within −32,767, +32,767 range.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.