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