How do this in Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do this in Python

I want a program to get and store the data(from a text file) in a variable, but the text file have three kinds of data: 1.Name, 2.Email, 3.Password. Then the datas are separated with this character: | To do the program i've to use something like split('|')? Edit: I forgot to specify how the data is. The data is like this https://code.sololearn.com/ciOQ0BFMHrKU/?ref=app

24th Sep 2020, 3:37 PM
Juancho
Juancho - avatar
3 Answers
24th Sep 2020, 3:53 PM
Oma Falk
Oma Falk - avatar
+ 5
Are the data in one line? toto| toto@dodo| my pwd dada| dada@dada |dadaspwd
24th Sep 2020, 3:46 PM
Oma Falk
Oma Falk - avatar
24th Sep 2020, 3:52 PM
Juancho
Juancho - avatar