Taking the sum of variables in python -


so have following code, reason 2 variables "large" , "small" doesn't seem add , don't know why. please me.

n = int(input("number:" ))  x = map(int, str(n)) x = [int(x) x in tal]  x.sort(reverse=true) large = "".join(map(str, x))  x.sort() small = "".join(map(str, x))  int(large) int(small)  large + small=y  print(y) 

change

int(large) int(small)  large + small=y 

to

large = int(large) small = int(small)  y = large + small 

Comments