Question: In this challenge, your input will be three lines, each containing a string. The first line will be stored in the variable s1, the second
In this challenge, your input will be three lines, each containing a string. The first line will be stored in the variable s1, the second in s2, and the third in s3.
Define a variable called joined_with_commas that holds a string with the contents of s1, followed by a comma, followed by s2, followed by a comma, followed by s3.
Sample Input 1:
apple banana orange
Sample Output 1:
apple,banana,orange
Sample Input 2:
1 2 3
Sample Output 2:
1,2,3
Sample Input 3:
red green blue
Sample Output 3:
red,green,blue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
