I was having this problem about last week in this code
a = int(input())
b = int(input())
c = int(input())
print(min(a+b,b+c,c+a))


so when I enter three input like this: 2 5 6 (three interger in 1 line)
It show me a error:

File "c:\Users\Administrator\Documents\Code\Python\baitap(LQDOJ)\EZMIN.py", line 1, in <module>
    a = int(input())
ValueError: invalid literal for int() with base 10: '2 5 6' 

and I see that it only identify 'a' but not identify 'b' , 'c' so can you show me how to fix it or are there other ways to write it in 1 line?

Can't not write three value in 1 line
Method 1
The error you're encountering is because you're trying to convert the entire string '2 5 6' into an integer using the int() function. However, the int() function expects a single integer value, not a string containing multiple numbers.
code:
a = int(input())
b = int(input())
c = int(input())

x = a + b
y = b + c
z = c + a

min_value = x
if y < min_value:
    min_value = y
if z < min_value:
    min_value = z

print("The minimum value is:", min_value)

you'll be prompted to enter the values for a, b, and c separately, and the code will correctly calculate and display the minimum value among the three sums.
Method 2
Using This one is more optimize solution
input_values = input()
input_list = list(map(int, input_values.split()))

min_value = min(input_list[0] + input_list[1], input_list[1] + input_list[2], input_list[2] + input_list[0])

print("The minimum value is:", min_value)


The split() method splits the input string at spaces, creating a list of string elements.
The map() function applies the int() function to each element of the split list, converting them into integers.
list() is used to convert the resulting map object into a list of integers.
The resulting list is stored in input_list for further calculations.

