44. Problem to print list elements separately.

In this Python list program, we will take a user input as a list and print list elements separately with the help of the below-given steps.

Print list elements separately:

Steps to solve the program
  1. Take a list as input.
  2. Use for loop to print the elements separately.
  3. Print the output to see the result.
				
					#Input list
list1 = [("Black", "Yellow", "Blue"), (50, 55, 60), (30.0, 50.5, 55.66)]

for value in list1:
    print(value)
				
			

Output :

				
					('Black', 'Yellow', 'Blue')
(50, 55, 60)
(30.0, 50.5, 55.66)
				
			

Related Articles

Convert a list of words into a single string

Create a sublist of numbers and their squares

Leave a Comment