Final answer:
A Python program to find the smallest of three user-input integers can be created using the min function, which will handle all cases, including ties.
Step-by-step explanation:
The program you are asking to write should take three integers as input and return the smallest of the three. In Python, you can achieve this by using the min function. See the following code for an example:
# Prompt user for input
def smallest_of_three_numbers():
num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
num3 = int(input('Enter the third number: '))
# Compare the numbers and print the smallest
smallest_num = min(num1, num2, num3)
print('The smallest number is:', smallest_num)
# Call the function
smallest_of_three_numbers()
When run, the program will ask for three numbers, compare them, and print out the smallest value, even if two or more numbers are equal.