Python Program to Print Tuple using string formatting

Write a Python Program to Print Tuple using string formatting. The following are ways to print the tuple items using the string formatting.

# Print Tuple using string formatting

numTuple = (20, 40, 60, 80, 100, 120, 140)
print(numTuple)

print("Tuple Items are = {0}".format(numTuple))

print("Tuple Items are = %s" %(numTuple,))

print("Tuple Items are = %s" %(numTuple))
Python Program to Print Tuple using string formatting 1