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