Level 9 : What will be the output of the below python code


def simpleGeneratorFun():
     yield 1
     yield 2 
     yield 3
for value in simpleGeneratorFun():
    print(value)

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