Click here to Skip to main content
15,908,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two text files.

Text file 1 : 0=0.345,1=34.5,2=54.6,3=235.67
Text file 2 : (0+2)*(3+2)

Is there a python operation that will assign the corresponding numbers from text file 1 to text file 2 ? I am doing my computations in text file 2 but i need the values in textfile 1. Thanks!

What I have tried:

I am trying to implement using dataframe, but it is a failure for me. Please help me with a simple logic.
Posted
Updated 15-Nov-21 12:52pm

This is much the same problem as Script to obtain a single equation[^], and my suggested logic should work just as well.
 
Share this answer
 
Comments
A v Nov2021 16-Nov-21 11:42am    
Hello! Thanks to you! I am able to implement both.
This is no different from the other homework problem you posted.

It works exactly the same way as the previous problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900