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