Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 25th, 2018
94
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
mygen = (x*x for x in range(1, 5))
# Output: 1, 4, 9, 16
for i in mygen:
print(i)
# No output here as generators can be iterated only once.
for i in mygen:
print(i)
Add Comment
Please,
Sign In
to add comment
Public Pastes
new Earthquake shell script
Bash | 46 min ago | 0.39 KB
SNN
Python | 55 min ago | 7.73 KB
SNN-RandomForest
Python | 56 min ago | 9.88 KB
CNN-RNN
Python | 58 min ago | 4.03 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 60 min ago | 0.39 KB
Untitled
FreeBasic | 1 hour ago | 3.61 KB
News April24 24
Email | 2 hours ago | 23.78 KB
2024-04-24_stats.json
JSON | 2 hours ago | 4.21 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!