Which method converts a datetime to a formatted string in Python?
Correct answer
A. strftime()
A. strftime()
strftime formats datetime to string; strptime parses a string to datetime.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.