Answer to Question #244697 in Python for Isabel Cortez

Question #244697

7. Enumeration

by CodeChum Admin


Have you ever answered a test question that tells you to enumerate a series of things, but the answer must be in a sentence? Quite tiring to write those things separated by commas and a single space, isn't it?


Then let's try coding it instead!


Input


Five lines containing a string on each.


C

C#

Java

Python

Javascript


Output


A single line containing all the strings separated by a comma and a space.


C, C#, Java, Python, Javascript


1
Expert's answer
2021-10-02T14:30:14-0400
list = []

for i in range(5):
    list.append(input())
print(', '.join(list))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS