Is the "format" a function or it's a method of the string object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is the "format" a function or it's a method of the string object?

30th Oct 2015, 5:13 PM
Maxim Vasilyev
1 Answer
+ 5
Good question. It's a method of the string object, and you know that because it has to be called with a dot (.) from the particular string it affects.
12th Apr 2016, 3:19 PM
Brian