Learn Python in One Day and Learn It Well: Python for Beginners with Hands-on Project
Rate it:
Open Preview
10%
Flag icon
This parentheses with values inside is actually known as a tuple, a data type that we’ll cover later in this chapter.
12%
Flag icon
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)