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