string concatenation strings also have operation symbols try in the shell (noting the space after very)'very 'hotthe plus operation with strings means concatenate the strings python looks at the type of operands before deciding what operation is associated with the think of the relation of addition and multiplication of integersand then guess the meaning of *'very 'hotwere you rightthe ability to repeat yourself easily can be handy predict the following and then test remember the last section on types + ' '+' python checks the types and interprets the plus symbol based on the type try ' '+ with mixed string and int typespython sees an ambiguous expressionand does not guess which you want it just gives an error this is traceback error these occur when the code is being executed in the last two lines of the traceback it shows the python line where the error was foundand then reason for the error not all reasons are immediately intelligible to starting programmerbut they are certainly worth checking out in this case it is pretty direct you need to make an explicit conversionso both are strings if you mean concatenation' str( )or so both are int if you mean additionint(' ' with literal strings these examples are only useful for illustrationthere is no reason to write such verbose expressions when you already know the intended result with variablesstarting in the next sectionexpressions involving these conversions become more important string exercise figure out compact way to get python to make the string'yesyesyesyesyes'and try it how about 'maybemaybemaybeyesyesyesyesyes'hint variables and assignment each set-off line in this section should be tried in the shell try width nothing is displayed by the interpreter after this entryso it is not clear anything happened something has happened this is an assignment statementwith variablewidthon the left variable is name for value an assignment statement associates variable name on the left of the equal sign with the value of an expression calculated from the right of the equal sign enter be careful if you are java or cprogrammerthis is unlike those languageswhere the would be automatically converted to ' so the concatenation would make sense hint for the second oneuse two *' and beginning with python