Python 3.14.3 (tags/v3.14.3:323c59a, Feb 3 2026, 16:04:56) [MSC v.1944 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. DreamPie 1.2.1 >>> xs = 'United States: 293000000' >>> xs = 'United States: 293000000\n' >>> xs.rstrip() 0: 'United States: 293000000' >>> xs.rstrip().split() 1: ['United', 'States:', '293000000'] >>> xs.rstrip().split(': ') 2: ['United States', '293000000'] >>> xs.split(': ') 3: ['United States', '293000000\n'] >>> ys = {} >>> type(ys) 4: <class 'dict'> >>> ys['CZ'] = 10_000_000 >>> ys 5: {'CZ': 10000000} >>> ys['SK'] = 5_000_000 >>> ys 6: {'CZ': 10000000, 'SK': 5000000} >>> len(ys) 7: 2 >>> ys['SK'] 8: 5000000 >>> ys['CZ'] 9: 10000000 >>> for y in ys: ... print(y) CZ SK >>> for y in ys: ... print(y, ys[y]) CZ 10000000 SK 5000000 >>> for y in ys.items(): ... print(y) ('CZ', 10000000) ('SK', 5000000) >>> for k,v in ys.items(): ... print(k, v) CZ 10000000 SK 5000000 >>> for y in ys: ... print(y) CZ SK >>> for y in ys.keys(): ... print(y) CZ SK >>> for y in ys.values(): ... print(y) 10000000 5000000 >>> ys['CZ'] = 11_000_000 >>> ys 10: {'CZ': 11000000, 'SK': 5000000} >>> zs = {'CZ': 11000000, 'SK': 5000000, 'CZ': 10_000_000} >>> zs 11: {'CZ': 10000000, 'SK': 5000000} >>> type(zs) 12: <class 'dict'> >>> set(zs) 13: {'SK', 'CZ'} >>> len(set(zs)) 14: 2 >>> ts = set(zs) >>> ts 15: {'SK', 'CZ'} >>> dir(ts) 16: ['__and__', '__class__', '__class_getitem__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__iand__', '__init__', '__init_subclass__', '__ior__', '__isub__', '__iter__', '__ixor__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__rand__', '__reduce__', '__reduce_ex__', '__repr__', '__ror__', '__rsub__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__xor__', 'add', 'clear', 'copy', 'difference', 'difference_update', 'discard', 'intersection', 'intersection_update', 'isdisjoint', 'issubset', 'issuperset', 'pop', 'remove', 'symmetric_difference', 'symmetric_difference_update', 'union', 'update'] [About 56 more lines. Double-click to unfold] >>> set('abracadabra') 17: {'r', 'c', 'd', 'b', 'a'} >>> int() 18: 0 >>> float() 19: 0.0 >>> int('123') 20: 123 >>> int('123.4') Traceback (most recent call last): File "<pyshell#36>", line 1, in <module> int('123.4') ~~~^^^^^^^^^ ValueError: invalid literal for int() with base 10: '123.4' >>> float('123.4') 21: 123.4 >>> float('123') 22: 123.0 >>> int(0) 23: 0 >>>