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