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