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