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