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