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