We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f64ea44 commit 5e01573Copy full SHA for 5e01573
excercise_20.py
@@ -0,0 +1,7 @@
1
+def mul(*numbers):
2
+ c=1
3
+ for i in numbers:
4
+ c=c*i
5
+ print(f"Mul is {c}.")
6
+mul(2,3,-6,8)
7
+mul(2,5,8,9,0,6)
paint_area.py
@@ -0,0 +1,9 @@
+import math
+def paint_calculation(height,width,cover=7):
+ area=height*width
+ no_of_cans=math.ceil(area/cover)
+ print(f"You will need {no_of_cans} cans of paint")
+h=int(input("Enter the height of wall in meter:\n"))
+w=int(input("Enter the width of wall in meters:\n"))
8
+coverage=7
9
+paint_calculation(width=w,height=h,cover=coverage)
0 commit comments