Robotics & Artificial Intelligence
Related Questions
Write a Python program to print the table of a given number by using a function.
Write a Python program to demonstrate the concept of default arguments in a function.
Write a function that returns the greater of two numbers passed as arguments.
Write a function called ice_water that takes a number as input. Perform the following operations:
- If the number is divisible by 3, then it should return "ice".
- If it is divisible by 5, then it should return "water".
- If it is divisible by both 3 and 5, then it should return "icewater".
- Otherwise, it should return the same number.