pyuser@deyu:~/zzz$ python Python 3.12.9 (main, Aug 14 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> x='Just a test' >>> print(type(x)) <class 'str'>
>>> x='David\'s friend' >>> print(x,type(x)) David's friend <class 'str'> >>> x="David's friend" >>> print(x,type(x)) David's friend <class 'str'>
>>> str1="abc def" >>> str2="edc rfv" >>> str3=str1+str2 >>> print(str3) abc defedc rfv
>>> num1=111 >>> num2=222 >>> str3=str(num1)+str(num2) >>> print(str3) 111222
>>> c1='qwe' >>> c2=c1*4 >>> print(c2) qweqweqweqwe >>> quit()