1s = "alpha.Customer[cus_Y4o9qMEZAugtnW] ..."
2m = re.search(r"\[([A-Za-z0-9_]+)\]", s)
3print m.group(1)
4
5> cus_Y4o9qMEZAugtnW
1Instead of: return ("Temperature in Fahrenheit Shall Be: ", far)
2You need to turn your variable to a string and then use the + operator:
3return "Temperature in Fahrenheit Shall Be: " + str(far)
4
5Source: https://stackoverflow.com/questions/55490290/python-return-statement-includes-brackets