12713 - Python2020_MOOCS_Practice_Problem3   

Description

This problem is the same as the previous one (Python2020_Self-Check4_Problem2), except for some minor changes in the output for you to understand some tricky things.

python3 friends.py
Mary Cindy
Mary and Cindy are my friends. 
Cindy is my best friend.$

[Hint]
There is a space after "Mary and Cindy are my friends.". Select(反白) the text to see the hidden space. We won't be so tricky in the quizzes, but it's good for you to know what to be careful of.

There is no new line character after "Cindy is my best friend.". The dollar sign ($) is the prompt, not part of the program output.
You can refer to 7:47 in the 3rd lecture video of week 3 for how to omit the new line character when printing.

Please check out the description and sample output of the previous two problems and this one. What's the difference among "an new line character after the last line"(the usual case), "one extra new line after the last line", and "no new line character after the last line"?

If you are using Cygwin or other terminal, you'll see the differences among the three cases. If you are using Jupyter Notebook, you'll find out that the first case and the third case look like the same. Therefore, be very careful for new line characters if you want to use Jupyter Notebook for the quizzes.

Input

One sentence includes two names and one space between the names.

Output

Two sentences claiming your friends and your best friend with no new line character after the the last sentence.

Sample Input  Download

Sample Output  Download




Discuss