I am just learning python and attempting a very simple string formatting line, but it's not working properly. As you can see from the output below, it is inserting the number in the last of the 3, but the first 2 are just showing the code instead of the number. I am sure the solution is simple, but I have tried to look at my code vs the code in the learning material I have, and I can't see any difference. Using Python 3.4 in Visual Studio 2015.
Thank you in advance for any available help! :)
CODE (Area is 200)
print("The area of the square would be {0:f} " .format(area))
#This is an example with multiple numbers and use of "\" outside of a string to allow for
#multiple lines of code in the same line spread out over numerous lines
print("Here are three other numbers." + \
" First number is {0:d}, second number is {1:d}, \n" + \
"third number is {2:d}" .format(7,8,9))
OUTPUT
The area of the square would be 200.000000
Here are three other numbers. First number is {0:d}, second number is {1:d}, third number is 9.
The thread 'MainThread' (0xc10) has exited with code 0 (0x0).
The program '[4968] python.exe' has exited with code -1073741510 (0xc000013a).