Skip to content

Commit 39e253f

Browse files
author
SanjayPradeeo
committed
Including author infor
Including Author info.
1 parent d480bdf commit 39e253f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Generators/LotteryExample.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__author__ = 'Sanjay'
2+
13
# How to create a generator in Python?
24
# It is fairly simple to create a generator in Python. It is as easy as defining a normal function with
35
# yield statement instead of a return statement.

Generators/basicGenerators.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__author__ = 'Sanjay'
2+
13
# Generators are very easy to implement, but a bit difficult to understand.
24
#
35
# Generators are used to create iterators, but with a different approach. Generators are simple functions which return an

0 commit comments

Comments
 (0)