In this Python list program, we will take a user input as a list and convert multiple numbers from that list into a single number with the help of the below-given steps.
Convert multiple numbers to a single number:
Steps to solve the program
- Take user input as a list.
- Use for loop to combine multiple numbers into a single number.
- Print the output.
#Input list
list1 = [12, 45, 56]
for value in list1:
print(value, end="")
Output :
124556
Related Articles
Python program to convert words of a list into a single string.
Python program to print elements of the list separately.
Python program to create a sublist of numbers and their squares from 1 to 10.
Python program to create a list of five consecutive numbers in the list.
Python program to insert a given string at the beginning of all items in a list.
Python program to iterate over two lists simultaneously and create a list of sublists.