
# store a different list only numbers by using simple mode or list comprehension mode


input_list = [True,False,[1,2,3],'limon',(1,2,3,4),10.5,2.4,1,4,8,10]

output_list = []

# general mode or simple mode

for i in input_list:
    if type(i) ==int or type(i) ==float:
        output_list.append(str(i))
print(output_list)



# list comprehension mode

output_list = [str(i) for i in input_list if type(i) == int or type(i) == float]
print(output_list)









b02ebc378cacd38bc254c3c6e7cbc16025b613be
<mask token>

<mask token>
for i in input_list:
    if type(i) == int or type(i) == float:
        output_list.append(str(i))
print(output_list)
<mask token>
print(output_list)

input_list = [True, False, [1, 2, 3], 'limon', (1, 2, 3, 4), 10.5, 2.4, 1, 
    4, 8, 10]
output_list = []
for i in input_list:
    if type(i) == int or type(i) == float:
        output_list.append(str(i))
print(output_list)
output_list = [str(i) for i in input_list if type(i) == int or type(i) == float
    ]
print(output_list)


# store a different list only numbers by using simple mode or list comprehension mode


input_list = [True,False,[1,2,3],'limon',(1,2,3,4),10.5,2.4,1,4,8,10]

output_list = []

# general mode or simple mode

for i in input_list:
    if type(i) ==int or type(i) ==float:
        output_list.append(str(i))
print(output_list)



# list comprehension mode

output_list = [str(i) for i in input_list if type(i) == int or type(i) == float]
print(output_list)








