---- -So here is my code-----
print("Type 3 numbers (comma separated)")
x,y,z = int(input()).split(",")
Avg = (x + y + z)/3
print(f"So here is the average {Avg}")
It is about asking the user to input 3 numbers and it calculates the average of them But an invalid literal error occurs later i just putted int() in Avg variable like this
Avg = int((x+y+z))/3
it works but i want to know why my code didn't worked earlier?
x,y,z = map(int, input().split(","))