Print multiple lines in one statement without leading spaces

后端 未结 6 1444
有刺的猬
有刺的猬 2021-01-13 03:00

So for my first project it is a simple program that prints your name class you are in and what high school you went to. The one thing that is messing me up is for one of the

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 03:34

    Just don't add space in your code

    print(first_name, last_name, '\n',course_id, course_name, email, '\n', school, '\n')
    

提交回复
热议问题