42. Problem to convert multiple numbers into a single number.

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
  1. Take user input as a list.
  2. Use for loop to combine multiple numbers into a single number.
  3. Print the output.
				
					#Input list
list1 = [12, 45, 56]

for value in list1:
    print(value, end="")
				
			

Output :

				
					124556
				
			

Related Articles

common member in lists

Convert a list of words into a single string

Leave a Comment