More on this book
Community
Kindle Notes & Highlights
by
Jamie Chan
Read between
October 4, 2019 - May 28, 2020
This parentheses with values inside is actually known as a tuple, a data type that we’ll cover later in this chapter.
message1 = '{0} is easier than {1}'.format('Python', 'Java') message2 = '{1} is easier than {0}'.format('Python', 'Java') message3 = '{:10.2f} and {:d}'.format(1.234234234, 12) message4 = '{}'.format(1.234234234)

