Level 10 : Correct the python program to get the current time.

Author: KaivalyaG | Tags: datetime | 1859+ Python FAQs | Share
operations | list,-set,-and-dictionary-comprehensions | matrix | multiprocessing | type-conversion | logical-operators | while-and-for-loop | thread | version | using-os-and-pathlib-modules | thread-synchronization | literal-characters-and-special-characters | while-else-loop | type_conversion | magic-method | tuple-unpacking | writing:-write(),-writelines() | namedtuple | thread-safe-data-structures-(queue.queue) | multithreading | method-overloading | logical-operator | math | complex-number | threading | syntaxerror | heap-memory | logical-operator | matrix-list-comprehension | unit-testing | mutable | exponentiation | strings | using-lists-as-stacks | loop-control | string-concatenation | sum-function | format | python-syntax-and-structure | __init_subclass__ | polymorphism | condition | using-join()-and-is_alive()-methods | control-flow | functions | slice | reading:-read(),-readline(),-readlines() | numpy | __future__ | formal-and-actual-parameter | debugging | floats | regex | class-and-instance-variable | deep-copy | aggregating-data-with-functools.reduce() | else | overriding-methods | expression | docstring | class | managing-directories-with-os-and-shutil | built-in-function | software-design | data-structure | pickling--unpickling | global-variable | time-series-with-pandas | floating-point-precision | membership-operators-(in,-not-in) | boolean-and-non-boolean | working-with-temporary-files-using-tempfile | list-method | using-the-threading-module | creating-custom-modules | conditional-statement | pass | string-method | center | function-argument | escape-operator | assert | exception-handling | overflow | destructor | frozenset | data-type-conversions | asyncio-module | design-principle | boolean | filtering-and-indexing | string-slicing | min-function | collections | encapsulation | module | python-repl | generators | max-min | assignment-operators | sorted | operator-overloading | advanced-file-operations | loop | class-and-inheritance | asyncio | set | with-statement | virtual-environment | default-mutable-argument | walking-through-directories-using-os.walk() | file-handling | access-modifier | expand-tab | formatting-with-strftime | loops | parsing-with-strptime | round-function | python-operators | control-flow | match | rollback | encoding | matplotlib | parameter | operators | touples | string-methods | single-inheritance | oop | conditional-statements | context-manager | basic | using-else-and-finally | generator | sys-module | name-mangling | counter-function | range | swapping | operator-and | method | list-mutation | memory-management | constructor | feature | array | generators-in-python | enumerate() | call | for | statement | else-statement | raise | loop-control-statements | difference-between-threads-and-processes | pandas | string-slicing | dictionary-comprehensions | recursion | collection | typeerror | precedence | application | namespace | exception | working-with-file-paths | directory-operations | conversion | methods | list-methods-and-slicing | exception-handling | nested-loop | error-handling | filter | object-attribute | file | data-types | dictionary | logical-operation | complex | sorting-and-ranking | function | dataframe-and-series-objects | sum() | boolean-masking | error | arithmetic-expression | global-variable | python_version | mapping-function | slicing | factorial-function | global | comparison | string-method | file_handling | functional-programming | creating-and-starting-threads | arithmetic-operation | dictionary-methods | bitwise-operator | attribute | command-line-parsing | identity-operator | built-in-function | zip-function | booleans | global-keyword | shallow-copy | operator-or | data-type | tuple | benefit | comprehension | memory | built-in-modules | working-with-binary-files-(rb,-wb) | print | quantifiers-(*,-+,-?,-{}) | installation | decimal | assignment-operator | dicts | staticmethod | set-operation | numeric | yield | sorting | import-method | python-module | key-value-pairs | reading-and-writing-files | identity-operators-(is,-is-not) | default-arguments | identity-operator | sets | built-in | function-and-scope | python | list-comprehension | data-structures | classes | objects | random | type-conversion-and-casting | using-map()-for-transformations | mysql | async | update | gil | goto-function | class-and-object | round | introduction-to-threads | stack | pep | functional-programming | input-function | descriptors | def | list-operation | conditional-statement | datatype | list-vs-tuple | mathematics | control-statement | filter-function | multiple-except-blocks | integer | iterator | string | counter | precedence-and-associativity | data-type | lists | decorator | fabs-function | data-structure | choice | list-slicing | min-max-function | package-management | oops | odd-number | data_structure | __all__-attribute | turtle | datetime | sys | string-formatting | error-handling | file-handling | introduction-to-python | print-statement | datetime.date,-datetime.time,-datetime.datetime | random-function | anchors-(^,-$) | invalid-list | compute | higher-order-function | introduction-to-multiprocessing | list-comprehension | defining-functions | recurssion | append | postfix | using-yield-in-functions | split | dictionaries | interpreter | type-conversion | lambda-function | virtual-environment | copy | map-function | binary | data-structures-in-python | lambda-functions | implementation | math-copysign | while-loop | working-with-dates-and-times | binary-operation | return-statement | using-assertions-(assertequal,-assertraises) | identifier | lambdas | zip | arbitrary-arguments-(*args,-**kwargs) | comment | list | mathematical-function | init | variable | class-decorators | bitwise | zfill-function | integers | inherit | iterable | tuples | intering | string-manipulation | string-formatting | string-iteration | multiple-inheritance | iterators | inheritance | joining-and-merging-dataframes | keyword | indexing:-loc-vs-iloc | reading-and-writing-large-files-efficiently | immutability | lambda | python-django | input-function | list-join | handling-missing-values-(fillna,-dropna) | id-function | head-and-tail | join | tuple-methods | pseudocode | multiple-inheritance | opening-files-(open()) | int | operator | scientific-notation | list-indexing | indentation | syntax-error | raise-statement | python-history | immutable-data-type | syntax-error | version-check | regular-expressions | why-use-multiprocessing-over-threading?-(gil) | while-loops | test-discovery | input | list-comprehensions | static-method | syntax | library | regular-expression | operand | bitwise-operator | indexing ...