重复练习2-5,但将名人的姓名存储在变量famous_person中,再创建要显示的消息,并将其存储在变量message中,然后打印这条消息。
代码:
famous_name="Albert Einstein once said,"
message="“A person who never made a mistake never tried anything new.”"
print(famous_name+message)
运行结果:
重复练习2-5,但将名人的姓名存储在变量famous_person中,再创建要显示的消息,并将其存储在变量message中,然后打印这条消息。
代码:
famous_name="Albert Einstein once said,"
message="“A person who never made a mistake never tried anything new.”"
print(famous_name+message)
运行结果: