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