thewhitetulip / build-app-with-python-antitextbook

Aims to teach Python3 by example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use .format() instead of % for string formatin (PEP3103)

STguerin opened this issue · comments

see PEP3101 .format was introduce in python 2.6 and should be the preferred way to do string interpolation

You are right, I'll make the changes. Thanks for pointing it out!

Changes have been made! Starting form python3.6, we don't even have to use .format()

i = 0
print(f"{i}")

This is amazing.