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