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