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