So I understand that you can do, for example:
x = input("Enter an integer: ")
print("I am now printing variable x: {}".format(x))
To get the output of whatever string I put in there, as {} is simply the placeholder for the variable.
However, on a website I saw {:d} being used, and despite experimenting in Python to figure out what it does, I cannot seem to find its use. Why is {:d} used when printing the variable and what use does it have?