# unicode for char in '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': print(f"ord('{char}'), unicode value: {ord(char)}") print() print() # string comparisons. a = 'hello' b = 'Hello' c = 'Hell' d = '1234' e = '57' f = '553' print(f"'{a}'=='hello': {a=='hello'}") print(f"'{a}'!='hello': {a!='hello'}") print(f"'{a}'>'hello': {a>'hello'}") print(f"'{a}'>='hello': {a>='hello'}") print(f"'{a}'<'hello': {a<'hello'}") print(f"'{a}'<='hello': {a<='hello'}") print() print(f"'{b}'=='Hello': {b=='Hello'}") print() print(f"'{a}'=='{b}': {a==b}") print(f"'{a}'!='{b}': {a!=b}") print(f"'{a}'>'{b}': {a>b}") print(f"'{a}'>='{b}': {a>=b}") print(f"'{a}'<'{b}': {a'{c}': {a>c}") print(f"'{a}'>='{c}': {a>=c}") print(f"'{a}'<'{c}': {a'{c}': {b>c}") print(f"'{b}'>='{c}': {b>=c}") print(f"'{b}'<'{c}': {b'{e}': {d>e}") print(f"'{d}'>='{e}': {d>=e}") print(f"'{d}'<'{e}': {d'{f}': {d>f}") print(f"'{d}'>='{f}': {d>=f}") print(f"'{d}'<'{f}': {d'{f}': {e>f}") print(f"'{e}'>='{f}': {e>=f}") print(f"'{e}'<'{f}': {e