print("\nINSTRUCTIONS~\nEnter:\n'c' to use a full fledged calculator,")
print("'a' to add and subtract numbers " +
"(faster than calculator if you just want to add and subtract),")
print("'s' to find a number's square root,")
print("'p' to see powers,")
print("'n' to arrange numbers in ascending and descending order,")
print("'f' to calculate factorials,\n'x' to exit the program,")
私は現在、同じ行に文の "+"を入れていますが、それ以外の場合は別のprint文を作成します。Python:連続した文章に複数のprint文または "+"を使うべきですか?
これは、複数行の文字列に最適です。 –
@MorganThrappは+の意味ですか? –
いいえ、http://stackoverflow.com/questions/2504411/proper-indentation-for-python-multiline-strings –