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