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. x = True x True x = 5 > 3 x True id(x) 140728349815216 x = 5 < 2 x False id(x) 140728349815248 x = None x id(x) 140728349815280 y = [1,2] y [1, 2] y[0] = 8 id(y) 1827942517248 y[1] = 11 y [8, 11] id(y) 1827942517248 'hello'.upper() 'HELLO' dir(1) ['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__delattr__', '__dir__', '__divmod__', '__doc__', '__eq__', '__float__', '__floor__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__index__', '__init__', '__init_subclass__', '__int__', '__invert__', '__le__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', '__neg__', '__new__', '__or__', '__pos__', '__pow__', '__radd__', '__rand__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__', '__ror__', '__round__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'as_integer_ratio', 'bit_count', 'bit_length', 'conjugate', 'denominator', 'from_bytes', 'imag', 'is_integer', 'numerator', 'real', 'to_bytes'] s = 'hello' s[2] 'l' >>> s[4] 'o' >>> i =90 >>> i[0] Traceback (most recent call last): File "", line 1, in i[0] TypeError: 'int' object is not subscriptable >>> 156 // 2 78 >>> 156 / 2 78.0 >>> 156 % 2 0 >>> 155 % 2 1 >>> 155 // 2 77 >>> 155 / 2 77.5 >>> t = 0b1100111 >>> t 103 >>> bin(156) '0b10011100' >>> hex(156) '0x9c'