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