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