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