Question: Please help me with this machine problem, thanks. PROBLEM a. Write a function script in python that will return the following: der formatname(first_name, last_name): ?

Please help me with this machine problem, thanks.
PROBLEM a. Write a function script in python that will return the following: der formatname(first_name, last_name): ? ? return ? print(format_name("John", "Katigbak")) # Should return the string "Name: Katigbak, John" print(format_name(", "Domingo")) # Should return the string "Name. Domingo" print(format_name("Bon Ryan", "")) # Should return the string "Name. Bon Ryan" print(format_name(","") # Should return an empty string b. The function "fractional" divides the numerator by the denominator and returns just th fractional part (a number between 0 and 1). def fractionalpart(numerator, denominator) ? #keep just the fractional part of the quotient return ? print(fractionalpart(5,5)) # Should be 0 print(fractionalpart(5, 4)) # Should be 0.25 print(fractionalpart(5, 3)) # Should be 0.66. print(fractionalpart(5,2)) # Should be 0.5 print(fractionalpart(5,0)) # Should be 0 print(fractionalpart(0,5)) # Should be 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
