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