Level 9 : What will be the output of the following Python code?


import turtle
t=turtle.Pen()
for i in range(0,5):
        t.left(144)
        t.forward(100)

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