Python Basic String Operator Flashcards


card 1 of 10




quotes are used for character strings


card 2 of 10




single or doublequotes (pairs must match) can be used


card 3 of 10


"ab c"


'ab c'

card 4 of 10




strings can be empty


card 5 of 10




+ operator concatenates strings


card 6 of 10




mixing quote styles is permitted


card 7 of 10




* is like repeated +


card 8 of 10




remember to match pairs of quotes

SyntaxError - while scanning single-quoted string

card 9 of 10




3*'a' and 'a'*3 have same result


card 10 of 10




it's true that 'b'*2 evaluates to 'bb', but ...

TypeError - the '/' operator isn't supported for strings


End of Problem Set

(use browser reload to restart this problem set)