>>> eval("544.2222") 544.2222 >>> eval("544") 544
>>> 'hello'[::-1] 'olleh'
6UYFTG >>>import string, random >>>''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(6)) 'NYU71H'
>>>'4'.zfill(3) '004' >>>"{0:03d}".format(4) '004'
if not a: print("List is empty")
z = dict(list(x.items()) + list(y.items()))
or
z = x.copy() z.update(y)