Very quick question.
x = 10
print("value is {:d}".format(x))
returns
value is 10
on the other hand:
x = 10.0
print("value is {:d}".format(x))
returns
ValueError: Unknown format code 'd' for object of type 'float'
Why doesnt this work?