15. Python Program to Print a List with sep and end
Mediumsep and end
Overview
Learn to format output in Python while keeping punctuation marks out of your print() statements.
Problem Statement
Print the following line without using commas (,) or periods (.) inside any print() call:
Akshay, Amir, Neil.
Constraints:
- Do not include
,or.directly in anyprint()argument. - The output must match exactly:
Akshay, Amir, Neil.
Input
- No input is required.
Output
The output should appear as:
Akshay, Amir, Neil.
Note the full stop (.) at the end.
Practice using the end parameter effectively to control printed output. Happy coding!