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