Hi there,
In a program I wrote the following line (Python 3.5):

print("You've visited", island, '&', new + ".")

A programmer told me that it's a bad habit, and I should have used instead:

print("You've visited {0} {1} {2}{3}".format(island, "&", new, "."))

May I understand why?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to