Answer:
def weeklyPaid(hours_worked, wage):
if hours_worked > 40:
return 40 * wage + (hours_worked - 40) * wage * 1.5
else:
return hours_worked * wage
hours_worked = 50
wage = 100
pay = weeklyPaid(hours_worked, wage)
print(f"Total gross pay: Rs.{pay:.2f} ")
Explanation:
provides gross pay
Answer:
- class AirConditioner:
- def __init__(self, a_c=False):
- self.office_a_c = a_c
-
-
- ac = AirConditioner()
- ac.office_a_c = True
Explanation:
Firstly, create a class and name it as AirConditioner (Line 1).
Next in the class constructor, create the reference variable office_a_c (Line 3). Please note the reference variable shall be preceded with a self keyword. Besides, the reference variable is set to False by default.
Create an AirConditioner object (Line 6) and then use the dot syntax (.) to set the object reference variable office_a_c to True.
Answer:
the main principles of DevOps are automation, continuous delivery, and fast reaction to feedback. You can find a more detailed explanation of DevOps pillars in the CAMS acronym: Culture represented by human communication, technical processes, and tools.
Answer:
The answer should be data availability