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