Level 10 : 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 | 1736+ Python FAQs | Share
statement | deep-copy | python_version | name-mangling | generators | typeerror | methods | matrix-list-comprehension | range | string-slicing | immutable-data-type | basic | error-handling | dicts | string-slicing | string | list-mutation | assignment-operator | formal-and-actual-parameter | access-modifier | oop | counter | application | functions | boolean | sys | thread | memory-management | round-function | operator | list-comprehension | assert | matrix | python-module | string-concatenation | namedtuple | center | def | zip-function | indexing | interpreter | datatype | with-statement | mysql | list-indexing | control-flow | precedence-and-associativity | threading | python | operand | async | array | pseudocode | sum() | error | function | design-principle | list-operation | turtle | global-keyword | file | feature | functional-programming | bitwise-operator | slice | swapping | staticmethod | type_conversion | function-argument | tuple | mathematical-function | while-loop | mutable | while-else-loop | complex-number | max-min | exception | conversion | matplotlib | for | list-comprehension | numeric | class-and-instance-variable | head-and-tail | __init_subclass__ | while-and-for-loop | complex | update | generators-in-python | module | rollback | set-operation | append | higher-order-function | call | python-django | mathematics | expression | format | namespace | magic-method | factorial-function | memory | random | list-join | raise | loop | asyncio-module | sorting | oops | odd-number | keyword | installation | loops | class-and-object | string-formatting | encoding | condition | collection | attribute | else-statement | virtual-environment | version-check | class | immutability | set | yield | filter | datetime | choice | file-handling | encapsulation | input | constructor | inheritance | exception-handling | descriptors | regular-expression | function-and-scope | type-conversion | logical-operation | conditional-statement | __all__-attribute | built-in | built-in-function | objects | software-design | counter-function | pandas | conditional-statement | file-handling | recursion | method | benefit | nested-loop | min-function | object-attribute | multithreading | map-function | print | command-line-parsing | string-iteration | join | operators | sorted | asyncio | logical-operator | type-conversion | control-flow | enumerate() | bitwise | fabs-function | class-and-inheritance | comment | string-formatting | postfix | mapping-function | lambda | package-management | multiprocessing | string-method | library | identity-operator | input-function | min-max-function | global-variable | data_structure | sys-module | default-mutable-argument | init | data-type | context-manager | loop-control | classes | data-type | data-structure | decorator | pep | random-function | match | dictionary | print-statement | logical-operator | escape-operator | round | id-function | invalid-list | comprehension | comparison | implementation | zfill-function | lambdas | gil | decimal | floating-point-precision | parameter | global-variable | arithmetic-operation | operator-overloading | inherit | integer | bitwise-operator | binary-operation | string-manipulation | lists | exponentiation | scientific-notation | pickling-&-unpickling | generator | operator-and | syntax-error | recurssion | input-function | syntaxerror | debugging | static-method | sum-function | tuple-unpacking | iterable | expand-tab | split | version | math-copysign | copy | slicing | python-repl | shallow-copy | multiple-inheritance | iterator | math | overflow | goto-function | operations | collections | file_handling | list | numpy | arithmetic-expression | docstring | touples | identifier | import-method | python-history | exception-handling | boolean-and-non-boolean | virtual-environment | indentation | data-structure | return-statement | polymorphism | string-method | precedence | compute | stack | control-statement | regex | identity-operator | syntax-error | dictionaries | frozenset | int | list-slicing | __future__ | zip | filter-function | destructor | data-structures | binary | variable | built-in-function | global | list-method | syntax | list-vs-tuple | lambda-function | operator-or | heap-memory ...