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