Computer Science, asked by TransitionState, 1 year ago

What is returned by datetime(1970, 1, 1).strftime('%Y-%d-%B') in Python?

Answers

Answered by indiabrainly
3

Answer:

Explanation:

"Upon typing the date time (1970, 1, 1).

Strftime (‘%Y-%d-%B’) in python usually there will be an exception that complains about invalid syntax.

Date time (1970, 1, 1). Strftime (‘%Y-%d-%B’)

           ^

SyntaxError: invalid syntax.

Or there can also be the complain of module object not callable.

Datetime (1970, 1, 1). Strftime (‘%Y-%d-%B’)

TypeError: ‘module’ object is not callable

For this, you need to import module datetime. "

Similar questions