I need to store the data from a .txt file to a database in Sqlite3.
I first try to read the txt file:
f = open("path", 'r')
if f.mode=='r':
content = f.read()
then i printed the "content" to know the structure of the data
print (content)
Rank Male Female
1 Noah Emma
2 Liam Olivia
3 William Ava
4 Mason Sophia
5 James Isabella
How can i manage the data from the variable "content" to store it in a database with a table separated as rank, name and sex.