[solved] – Question 819
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”)&
C&
CM&
CMP&
CMPT&
You will implement this function in two ways:&
(a) using string slices1;&
(b) without using string slices.
Expert Answer
OR

