Level 1 : What will be the output of the following Python code?


import datetime
d=datetime.date(2017,06,18)
print(d)

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