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