Python 3.13.6 (tags/v3.13.6:4e66535, Aug 6 2025, 14:36:00) [MSC v.1944 64 bit (AMD64)] on win32 Enter "help" below or click "Help" above for more information. ord('1') 49 ord('2') 50 '1' < '2' True '1' < 'A' True 'a' >= 'A' True 'hello, world. I am here".split() SyntaxError: unterminated string literal (detected at line 1) 'hello, world. I am here'.split() ['hello,', 'world.', 'I', 'am', 'here'] 'hello, world. I am here'.split(' ') ['hello,', 'world.', 'I', 'am', 'here'] 'hello, world. I am here'.split('.') ['hello, world', ' I am here'] 'hello, world. I am here'.split(' ',-1) ['hello,', 'world.', 'I', 'am', 'here'] 'hello, world. I am here'.split(' ',-2) ['hello,', 'world.', 'I', 'am', 'here'] 'hello, world. I am here'.split(' ',2) ['hello,', 'world.', 'I am here'] 'hello, world. I am here'.split('.',2) ['hello, world', ' I am here'] "".join(['hey', 'ho', 'anybody home']) 'heyhoanybody home' " ".join(['hey', 'ho', 'anybody home']) 'hey ho anybody home' ", ".join(['hey', 'ho', 'anybody home']) 'hey, ho, anybody home' "".join[1,2,3] Traceback (most recent call last): File "", line 1, in "".join[1,2,3] TypeError: 'builtin_function_or_method' object is not subscriptable "".join([1,2,3]) Traceback (most recent call last): File "", line 1, in "".join([1,2,3]) TypeError: sequence item 0: expected str instance, int found "a cat"[::-1] 'tac a' s = 'a dof' reversed(s) str(reversed(s)) '' >>> list(reversed(s)) ['f', 'o', 'd', ' ', 'a'] >>> "".join(list(reversed(s)) ... ... ) 'fod a' >>> "HeLLo'.lower() SyntaxError: unterminated string literal (detected at line 1) >>> "HeLLo".lower() 'hello' >>> 'a'.isalpha() True >>> '1'.isalpha() False >>> '.'.isalpha() False >>> 'T'.isalpha() True