String formatting in Python

PHOTO EMBED

Thu Aug 24 2023 14:18:20 GMT+0000 (Coordinated Universal Time)

Saved by @pythonHub #python #python-hub #basics

#-----GAME-----
diamonds = 10
#player won 
daimonds += 5
#player lost
diamonds -= 1
#player wants to see total no. of diamonds he has
print("The total no. of diamonds you have = ", diamonds)
content_copyCOPY