Question: Language is in Python. 1. Write a function that returns the maximum of two numbers. 2. Write a function called fizz_buzz that takes a number.
1. Write a function that returns the maximum of two numbers. 2. Write a function called fizz_buzz that takes a number. 1. If the number is divisible by 3, it should return "Fizz". 2. If it is divisible by 5, it should return "Buzz". 3. If it is divisible by both 3 and 5, it should return "FizzBuzz". 4. Otherwise, it should return the same number. 3. Write a function for checking the speed of drivers. This function should have one parameter: speed. 1. If speed is less than 70, it should print "OK". 2. Otherwise, for every 5km above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points. For example, if the speed is 80, it should print: "Points: 2". 3. If the driver gets more than 12 points, the function should print: "License suspended
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
