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