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