Read the task instructions that are included in the comments in the code, and then get started!
You can either edit and code online in repl.it (click on the link on the right which says EDIT on repl.it. Alternatively, you can simply cut and paste the below into your own python file
Solve the challenge on repl.it""" ==============TASK 1. Create a new file called fakefacebook.txt 2. In it store the following data for 3 individuals username, password, emailaddress, no.of.friends e.g. marvR pass123 [email protected] 400 3. Print the results of the file to the screen """ import csv #1. Open the File, Read it into a list, and Print Contents with open("studentinfo.txt",newline="") as f: reader=csv.reader(f) for row in reader: print(row)
filename: studentinfo.txt
001,Joe,Bloggs,Test1:99,Test2:100,Test3:7 002,Ash,Smith,Test1:20,Test2:20,Test3:100
A sample flow chart (design) for this particular challenge could look like:
Test No. | Description | Test Data(input) | Expected Outcome | Actual Outcome | Further Action? |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |