FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/examples/example_inputs/yield.py at master · jackcoolpython/pyt · GitHub
jackcoolpython
pyt
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
examples
/
example_inputs
/
yield.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (9 loc) · 130 Bytes
Breadcrumbs
pyt
/
examples
/
example_inputs
/
yield.py
Copy path
File metadata and controls
10 lines (9 loc) · 130 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
def
func
(
x
):
yield
x
yield
2
def
main
():
gen
=
func
(
1
)
print
(
next
(
gen
))
x
=
1
y
=
2
print
(
next
(
gen
))
Back
|
FazBrowse Home
|
New Git URL