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