livepython.net

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 any print() 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!

Learn this firstChapter 2 · print() sep and end Parameters Explained
solution.py
# write your code here

EXPECTED OUTPUT

1Akshay, Amir, Neil.

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.