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