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


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

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