- >>> print ‘aaa‘,89
- aaa 89
- >>> print ‘aa‘90
- SyntaxError: invalid syntax
- >>> print ‘aa‘+90
- Traceback (most recent call last):
- File "<pyshell#5>", line 1, in <module>
- print ‘aa‘+90
- TypeError: cannot concatenate ‘str‘ and ‘int‘ objects
- >>> print ‘aa‘+‘caa‘
- aacaa
- >>> print ‘aa‘ ‘bb‘
- aabb
- >>> print ‘aa‘‘rr‘
- aarr
- >>> print ‘aa‘,90
- aa 90
- >>> print ‘%s,%s‘%(‘tom‘,‘jerry‘)
- tom,jerry
- >>> ‘%s,%d‘%(‘tom‘,56)
- ‘tom,56‘
- >>>