function called 2) Define and call a value-returning hideNumbers. The function accepts a string as parameter which consists of digits only. It replaces all but the last 4 digits by "x" and returns the new string. Use string-slicing in your solution to find the last 4 digits.

icon
Related questions
Question

Alert dont submit AI generated answer.

2) Define and call a value-returning function called
hideNumbers. The function accepts a string as
parameter which consists of digits only. It replaces all
but the last 4 digits by “x” and returns the new string.
Use string-slicing in your solution to find the last 4
digits.
Transcribed Image Text:2) Define and call a value-returning function called hideNumbers. The function accepts a string as parameter which consists of digits only. It replaces all but the last 4 digits by “x” and returns the new string. Use string-slicing in your solution to find the last 4 digits.
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer