In this lab the main objective was to create different functions and assign them values and another function to calculate all the functions together to make a total product. The values of the functions used ‘if’, ‘elif’ and ‘else’ conditions to give strings a value. These values represented the cost of the trip to a certain city. Then a function was created to find the cost of a rental car for x amount of days. Finally a third function was created to combine the cost of the trip and the car rental to give a total cost.
-
Recent Posts
Tags
May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31