Tags
python
Asked 1 years ago
29 Jun 2023
Views 387
steave ray

steave ray posted

format vs vformat in Python

difference between format and vformat in Python
python

python
answered Jun 29 '23 00:00

string formatting can be done with format method and vformat method as well in Python. but with vformat method can use dictionary as argument . but in format method we need to ** or * for dictionary as argument.
jabber

jabber
answered Jun 29 '23 00:00

format method and vformat method are both from string module in Python.
Post Answer