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


#1

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

Strings and Console Output


#2

to understand this we need to look at C:

https://en.wikipedia.org/wiki/C_data_types

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


#3

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


#4

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