Level 8 : 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 | 1736+ Python FAQs | Share
destructor | library | string-iteration | with-statement | string-method | file-handling | software-design | list-slicing | multithreading | escape-operator | method | lambda | global-keyword | installation | data-structure | attribute | filter | pandas | set | global | matrix | design-principle | join | factorial-function | comprehension | string-formatting | dictionaries | zip | fabs-function | multiprocessing | operations | global-variable | list-operation | enumerate() | descriptors | file | namespace | identity-operator | datatype | sum() | decorator | while-else-loop | constructor | split | pickling-&-unpickling | exponentiation | python_version | syntaxerror | context-manager | zfill-function | feature | package-management | math-copysign | virtual-environment | lists | random | string-formatting | raise | string-manipulation | logical-operator | list-vs-tuple | exception | compute | int | classes | syntax-error | binary | function-and-scope | logical-operation | polymorphism | nested-loop | match | mathematical-function | staticmethod | logical-operator | binary-operation | debugging | python-django | floating-point-precision | memory-management | yield | shallow-copy | oops | lambdas | built-in-function | generators-in-python | version-check | while-loop | arithmetic-expression | min-max-function | __future__ | iterator | keyword | sys | append | sorted | regex | postfix | methods | data-type | class-and-instance-variable | docstring | operator-overloading | file-handling | encapsulation | precedence | loop-control | datetime | type-conversion | virtual-environment | higher-order-function | print | math | statement | sorting | numpy | class | operators | expand-tab | regular-expression | string-method | syntax | loop | global-variable | precedence-and-associativity | formal-and-actual-parameter | access-modifier | asyncio-module | head-and-tail | round-function | tuple | python | mutable | random-function | filter-function | threading | turtle | built-in-function | list-indexing | frozenset | format | control-flow | control-flow | condition | matrix-list-comprehension | input-function | import-method | matplotlib | input | range | objects | assert | python-repl | recurssion | list-method | inherit | complex-number | return-statement | pep | operator-or | parameter | round | overflow | generators | encoding | indentation | boolean-and-non-boolean | operator-and | __init_subclass__ | collection | bitwise-operator | mathematics | collections | boolean | data-structures | module | comparison | choice | heap-memory | static-method | goto-function | variable | oop | class-and-object | functions | copy | conversion | id-function | data_structure | list-comprehension | pseudocode | touples | async | list | dictionary | gil | slice | data-type | operator | type-conversion | scientific-notation | error | sum-function | iterable | set-operation | center | function-argument | function | min-function | else-statement | version | assignment-operator | lambda-function | exception-handling | init | identity-operator | arithmetic-operation | functional-programming | stack | numeric | immutable-data-type | command-line-parsing | zip-function | name-mangling | max-min | complex | counter | object-attribute | mapping-function | python-history | conditional-statement | generator | input-function | map-function | application | asyncio | indexing | multiple-inheritance | swapping | list-join | class-and-inheritance | odd-number | exception-handling | recursion | mysql | update | integer | type_conversion | counter-function | tuple-unpacking | loops | deep-copy | control-statement | typeerror | __all__-attribute | sys-module | inheritance | operand | list-mutation | decimal | built-in | string-concatenation | dicts | list-comprehension | invalid-list | data-structure | identifier | slicing | string | syntax-error | rollback | namedtuple | for | magic-method | while-and-for-loop | call | basic | bitwise-operator | def | expression | string-slicing | thread | implementation | conditional-statement | memory | comment | error-handling | bitwise | benefit | file_handling | string-slicing | interpreter | array | default-mutable-argument | print-statement | python-module | immutability ...