FANDOM


16px-Pencil

Formatting output for more than one variable Edit

To format the output of print you can do the following:

print 'name: %s' %name

If you have more than one variable you can use a tuple:

print 'name: %s lastname: %s' %(name, lastname)

See Also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.