How to convert the text file data to a List in Python

preview_player
Показать описание
Convert the text file to List for easily processing. Convert text file to List for Analysis.
How to convert the text file data to a List in Python.
Thanks for watching my videos regularly and motivate me to touch the another milestone.

Please subscribe my channel "Learn TechToTech"

My Twitter Account :

My Facebook Account:
Рекомендации по теме
Комментарии
Автор

Your intro almost game me heart attack

davidshevchenko
Автор

How do I create individual lists? Like 1 for each column?

jaymarkcortez
Автор

wwe could have used
>>with open("marks.txt", "r") as file:
>> a=file.read().split()
this would have been a better option

talhaamir
Автор

why did you write

>>for i in data:

instead of writing

>>for i in range(len(data)):

??? i am new to python, could you explain to me

origami_canoe
Автор

import numpy as np
data = np.genfromtxt('file.txt', delimiter=', ')
print(data)

for i in data:
print(i)

saadmaksood
Автор

what if there a words in the .txt file?

haiderjawad
Автор

can we show this data on the list box ?i mean to say if i creating a GUI and i want to show all the data on the list box

nayabyounus
Автор

I have text file which is not formatted how do i use delimeter option there

anandpatil
Автор

can you please tell how to create nested folders from the name of text file in python for
example:
input:f1-f2-f3.txt
output:f1/f2/f3.txt.
Thank you

Neo-ptwl
Автор

How do we insert the txt file data in a list

XoLucyna
Автор

Sir can you show to read the. Txt file in columns wise please

mallusreddy