+ 1
In case you're wondering where the first '
#x27; came from; look in print() method. There variable <y> is initialized with a '
#x27; and each element of array <words> is accumulated in <y> with a '
#x27; on its end.
20th Feb 2023, 12:25 PM
Ipang
+ 1
Code works without any issue, then I'm not sure what the problem is. The output already have the $ in the beginning, in between, and at the end of the output string. What was your doubt again?
20th Feb 2023, 10:25 AM
Ipang