My code behaves correctly. I have a question about this line: print "%d squared is %d." % (n, squared)
But I don't understand why it says "%d squared is %d" instead of "% squared is %." What do the lowercase d's add, given that % is defined without the d immediately afterward?
I have the feeling I'm overlooking or forgetting something simple and appreciate your undulgence.
Replace this line with your code.