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 | 1736+ Python FAQs | Share
sys-module | else-statement | application | assert | sum() | string-iteration | file-handling | data-structures | list | parameter | constructor | data-structure | operator-and | expand-tab | string-method | math | arithmetic-expression | file_handling | decimal | random-function | python-repl | stack | method | software-design | pandas | nested-loop | tuple-unpacking | list-comprehension | lists | attribute | scientific-notation | list-comprehension | module | multiple-inheritance | installation | raise | turtle | set-operation | syntax-error | sorted | decorator | zip | input | loops | identity-operator | logical-operator | comprehension | fabs-function | dictionaries | class-and-inheritance | mutable | python-history | loop-control | arithmetic-operation | file | string-method | deep-copy | string-manipulation | sys | collections | datetime | round | global-keyword | library | datatype | access-modifier | operators | frozenset | assignment-operator | head-and-tail | while-and-for-loop | global-variable | asyncio | counter-function | factorial-function | id-function | exception | sum-function | error-handling | boolean | class-and-object | memory-management | classes | version | oops | floating-point-precision | oop | control-flow | pickling-&-unpickling | context-manager | operator-overloading | control-statement | numpy | rollback | expression | complex-number | int | max-min | string-slicing | random | filter-function | gil | __all__-attribute | indexing | inheritance | descriptors | list-method | data-type | operations | higher-order-function | design-principle | goto-function | syntax | __init_subclass__ | list-mutation | basic | object-attribute | generators-in-python | precedence-and-associativity | built-in | operator | syntax-error | zip-function | return-statement | generators | namespace | command-line-parsing | variable | built-in-function | print | lambda-function | conditional-statement | python-module | formal-and-actual-parameter | with-statement | overflow | counter | multithreading | recursion | logical-operator | slicing | list-slicing | input-function | functions | data_structure | type_conversion | map-function | lambda | swapping | indentation | slice | init | default-mutable-argument | iterable | virtual-environment | dictionary | array | operator-or | objects | type-conversion | condition | pseudocode | min-function | static-method | print-statement | mysql | methods | mapping-function | statement | list-vs-tuple | zfill-function | choice | staticmethod | string-formatting | invalid-list | lambdas | multiprocessing | comment | escape-operator | def | encoding | collection | built-in-function | loop | global | recurssion | comparison | docstring | namedtuple | data-structure | string | match | function-argument | yield | heap-memory | functional-programming | debugging | conversion | update | set | immutable-data-type | inherit | matrix | shallow-copy | precedence | mathematical-function | integer | filter | binary | magic-method | class | call | asyncio-module | string-concatenation | numeric | center | pep | python-django | error | package-management | dicts | string-formatting | async | feature | import-method | while-loop | keyword | encapsulation | exception-handling | virtual-environment | benefit | split | implementation | identifier | matrix-list-comprehension | boolean-and-non-boolean | round-function | iterator | global-variable | class-and-instance-variable | immutability | typeerror | format | memory | bitwise-operator | name-mangling | python_version | compute | type-conversion | copy | polymorphism | regular-expression | logical-operation | for | touples | odd-number | thread | list-join | data-type | threading | enumerate() | range | math-copysign | syntaxerror | list-indexing | function-and-scope | tuple | complex | identity-operator | version-check | __future__ | while-else-loop | destructor | exponentiation | matplotlib | binary-operation | string-slicing | postfix | bitwise-operator | min-max-function | bitwise | append | conditional-statement | regex | mathematics | generator | function | python | sorting | exception-handling | join | list-operation | input-function | interpreter | file-handling | control-flow | operand ...