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