We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a9271 commit cc6eb94Copy full SHA for cc6eb94
52.py
@@ -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