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