Professional Documents
Culture Documents
Assign8 251
Assign8 251
Output:
2. Write a python program to read information from above file.
source code
Output
3. Write a python program to read get 3 inputs from user and write those names to
a file myinfo2_yyy
Source code:
Output:
Here is evidence that data has entered into file successfully
4. Write a python program to read all of the values in the sales.txt file. (uploaded) To read
the data from sales.txt file we can use the given code:
Source code
output
Evidence that data shown by above program is correct:
5. Write a python program to get students details from the user and write those
data as records to a file (i.e student name , studentid and city and write that to a
file named students_yyy)
Source code
Output