if statementpython' main selection tooltherewe'll also revisit python' syntax model in more depth and look at the behavior of boolean expressions before we move onthoughthe end-of-quiz will test your knowledge of what you've learned here test your knowledgequiz name three ways that you can assign three variables to the same value why might you need to care when assigning three variables to mutable object what' wrong with saying sort() how might you use the print operation to send text to an external filetest your knowledgeanswers you can use multiple-target assignments ( )sequence assignment (abc )or multiple assignment statements on three separate lines ( and with the latter techniqueas introduced in you can also string the three separate statements together on the same line by separating them with semicolons ( if you assign them this waya [all three names reference the same objectso changing it in place from one ( append( )will affect the others this is true only for in-place changes to mutable objects like lists and dictionariesfor immutable objects such as numbers and stringsthis issue is irrelevant the list sort method is like append in that it makes an in-place change to the subject list--it returns nonenot the list it changes the assignment back to sets to nonenot to the sorted list as discussed both earlier and later in this book ( ) newer built-in functionsortedsorts any sequence and returns new list with the sorting resultbecause this is not an in-place changeits result can be meaningfully assigned to name to print to file for single print operationyou can use ' print(xfile=fcall formuse ' extended print >filex statement formor assign sys stdout to manually opened file before the print and restore the original after you can also redirect all of program' printed text to file with special syntax in the system shellbut this is outside python' scope assignmentsexpressionsand prints