FORMAT method in Python

 This is the older method to write f "string"


num = 44
name = "Ronaldo"
career = "10 years"
print("The player {} whose assigned number is {} is playing football since {}".format(name, num, career))



Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

The Basic Structure of a Full-Stack Web App

Unlocking Web Design: A Guide to Mastering CSS Layout Modes