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