Question: - Write a function diag(x) that takes a string as input and outputs the string written in a diagonal - As an example, if you

- Write a function diag(x) that takes a string as input and outputs the string written in a diagonal - As an example, if you call diag("PYTHON"), the output should be
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
