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