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