Write a program that prompts the user to enter one number consisting of THREE digits, separate the number into its individual digits and prints the digits separated from one another by a space and a comma. I made three individual digits into a list. And the except output should be no square brackets. Please help. Many Thanks!
input_integer = int(input("Enter three-digit integer: "))
s = [int(i) for i in str(input_integer)]
print("Digits in",input_integer, "are",s)
Here is what I except:
Enter three-digit integer: 123 Digits in 123 are 1, 2, 3