8.15. Chapter AssessmentΒΆ

Write a function called int_return that takes an integer as input and returns the same integer.

Write a function called add that takes any number as its input and returns that sum with 2 added.

Write a function called change that takes any string, adds β€œNice to meet you!” to the end of the argument given, and returns that new string.

You will need to write two functions for this problem. The first function, divide that takes in any number and returns that same number divided by 2. The second function called sum should take any number, divide it by 2, and add 6. It should return this new number. You should call the divide function within the sum function. Do not worry about decimals.

You have attempted of activities on this page