2013-12-29 22:34:42 +00:00
|
|
|
# basic strings
|
|
|
|
|
|
|
|
x = 'abc'
|
|
|
|
print(x)
|
|
|
|
|
|
|
|
x += 'def'
|
|
|
|
print(x)
|
|
|
|
|
|
|
|
print('123' + "456")
|
2014-01-05 10:47:51 +00:00
|
|
|
|
|
|
|
# iter
|
|
|
|
print(list('str'))
|
2014-01-08 20:41:22 +00:00
|
|
|
|
|
|
|
print('123' + '789' == '123789')
|
|
|
|
print('a' + 'b' != 'a' + 'b ')
|
|
|
|
|
|
|
|
# Not implemented so far
|
|
|
|
# print('1' + '2' > '2')
|
|
|
|
# print('1' + '2' < '2')
|