string and an integer valuepython will not know how to handle thisand it will display an error message 'alice traceback (most recent call last)file ""line in 'alice typeerrorcan only concatenate str (not "int"to str the error message can only concatenate str (not "int"to str means that python thought you were trying to concatenate an integer to the string 'aliceyour code will have to explicitly convert the integer to string because python cannot do this automatically (converting data types will be explained in "dissecting your programon page when we talk about the str()int()and float(functions the operator multiplies two integer or floating-point values but when the operator is used on one string value and one integer valueit becomes the string replication operator enter string multiplied by number into the interactive shell to see this in action 'alice 'alicealicealicealicealicethe expression evaluates down to single string value that repeats the original string number of times equal to the integer value string replication is useful trickbut it' not used as often as string concatenation the operator can be used with only two numeric values (for multiplication)or one string value and one integer value (for string replicationotherwisepython will just display an error messagelike the following'alice'bobtraceback (most recent call last)file ""line in 'alice'bobtypeerrorcan' multiply sequence by non-int of type 'str'alice traceback (most recent call last)file ""line in 'alice typeerrorcan' multiply sequence by non-int of type 'floatit makes sense that python wouldn' understand these expressionsyou can' multiply two wordsand it' hard to replicate an arbitrary string fractional number of times