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