How do i extract specific text from a file and store it in a variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i extract specific text from a file and store it in a variable?

eg : total = a + b # in file and.txt how do I extract total from the file and store it in a variable

13th Oct 2017, 2:12 AM
suryapoojary
suryapoojary - avatar
2 Answers
+ 19
You don't want extract. Sololearn can be learnt in
13th Oct 2017, 2:40 AM
Chinthana Kavinda
Chinthana Kavinda - avatar
0
I already know python
13th Oct 2017, 3:01 AM
suryapoojary
suryapoojary - avatar