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