Skip to content

Commit cc6eb94

Browse files
committed
......
1 parent 75a9271 commit cc6eb94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: 52.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Given a list of tuples, your task is to multiply the elements of the tuple and return a list of multiplied elements as shown below.
2+
# Example 1:[(2, 3), (4, 5), (6, 7), (2, 8)]
3+
# Output:[6, 20, 42, 16]
4+
p = [(11, 22), (33, 55), (55, 77), (11, 44)]
5+
ls = []
6+
for i in p:
7+
c = i[0]*i[1]
8+
ls.append(c)
9+
print(ls)

0 commit comments

Comments
 (0)