Level 2 : What will be the output shape of the following Python code?


import turtle
t=turtle.Pen()
for i in range(0,4):
	t.forward(100)
	t.left(120)

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