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