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