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