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