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