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