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