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