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