instead of it being
7
3
2
How do I make it
7,3,2
This is not my output, just my input
instead of it being
7
3
2
How do I make it
7,3,2
This is not my output, just my input
You could do something like this:
# 1 input request
res = input()
# split into a numbers array
numbers = res.split(',')
# remove any whitespace next to the numbers
numbers = [number.strip() for number in numbers]
These all use built in python functions, which are documented very well in the official python documentation.
numbers = input("enter numbers")
#takes in the input
numbers = numbers.split(",")
#splits the input into a list of the values