- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.py
More file actions
Latest commit
21 lines (15 loc) · 335 Bytes
/
Copy pathMap.py
File metadata and controls
21 lines (15 loc) · 335 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
defsq(n):
returnn*n
num= (1, 2, 3, 4)
res=map(sq, num)
print(res)
print(".................................")
# print(next(res))
# print(next(res))
# print(next(res))
# print(next(res))
print(".................................")
#for i in res:
# print(i)
print(".................................")
print(list(res))