Level 9 : What will be the output of the following Python code if the system date is 18th June, 2017?


import datetime
tday=datetime.date.today()
print(tday)

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