Example 1

When two of the processes are running in parallel in this example it will take 50 seconds to run. This is because Y and Z are going to run in parallel. Both the processors would be running at the same time so the one that takes forty second will stop and the whole entire process will stop after 50 seconds

Example 2

If we run them in parallel they will run at the same time so the longer process will be the execution time which will be 45 seconds. 70-25= 45 seconds. Running them one after another is adding them together which would be 25+45 which is 70.

Example 1

When two of the processes are running in parallel in this example it will take 50 seconds to run. This is because Y and Z are going to run in parallel. Both the processors would be running at the same time so the one that takes forty second will stop and the whole entire process will stop after 50 seconds

Example 2

If we run them in parallel they will run at the same time so the longer process will be the execution time which will be 45 seconds. 70-25= 45 seconds. Running them one after another is adding them together which would be 25+45 which is 70.

  • Here is my List about foods that start with the letter H
foods = ["apple", "banana", "hamburger", "cookie", "honeydew", "corn", "ham", "heirloom tomato", "hot dog"]

h_foods = [food.title() if len(food) > 5 else food for food in foods if food.lower().startswith("h")]

print(h_foods)
['Hamburger', 'Honeydew', 'ham', 'Heirloom Tomato', 'Hot Dog']