Create a function triangle(s), which takes a string s as its argument and prints the successive characters of the string on each line. For example&
& >>> triangle("CMPT")&
You will implement this function in two ways:&
(a) using string slices1;&
(b) without using string slices.
This question can be posted as an assignment to our site and our experts will assist you.