0

Input and Output Files in Python

I need to make such a program which takes input from a text file and output in other text file . How can i do this ☝️? i mean I want to get inputs and process it with the same program and the print output in some file. Not like taking input from screen and printing on screen , its like how they do on codechef and other platforms.

23rd Apr 2021, 3:35 AM
Gama_bomb_v2.0
Gama_bomb_v2.0 - avatar
4 Answers
+ 2
Using text file using module such as pickle ,CSV. Gama_bomb_v2.0 pls clarify about your questions..
23rd Apr 2021, 7:38 AM
Sâùtôsh
Sâùtôsh - avatar
+ 2
Såñtösh😘😍 i want to get input from a file and give it to process to program and then print the output of the program in other file , not reading and writing
23rd Apr 2021, 7:56 AM
Gama_bomb_v2.0
Gama_bomb_v2.0 - avatar
+ 1
Attempt
23rd Apr 2021, 4:08 AM
Ananiya Jemberu
Ananiya Jemberu - avatar
0
I want a program to a code in C that can add two polynomials with inputs : (3), (1 2), (2 3), (3 4), (3) , (4 3) (2 5), (4 6). Out put : (1 2), (6 3), (3 4),(2 5), (4 6).
23rd May 2021, 3:02 PM
Lawrence Opoku Appiah
Lawrence Opoku Appiah - avatar