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