Using Python
Please upvote if you are able to understand this and if there is any query do mention it in the comment section.
CODE:
SomeName = "Phil"
NameLength = len(SomeName)#using len function to calculate the
length of SomeName
#using the format method for placeholders
print("I very much enjoy infinite loops, said {0} whose name is {1}
letters long".format(SomeName, NameLength))
OUTPUT:
If there is still any doubt then please mention it in the comment section otherwise please upvote.
Get Answers For Free
Most questions answered within 1 hours.