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