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