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