The Wayback Machine - https://web.archive.org/web/20201026092759/https://github.com/TwoWater/Python/issues/17
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yield example a small question needed revise #17

Open
shengzhulst opened this issue May 8, 2019 · 0 comments
Open

yield example a small question needed revise #17

shengzhulst opened this issue May 8, 2019 · 0 comments

Comments

@shengzhulst
Copy link

@shengzhulst shengzhulst commented May 8, 2019

class Bank():

this example when you are using python3, you need use print(corner_street_atm.next()) or print(next(corner_street_atm))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.