Question
1-Write a script in Python that delete all data discrepancies from a file as follows. The next 2 entries need to be discarded because the
1-Write a script in Python that delete all data discrepancies from a file as follows.
The next 2 entries need to be discarded because the session ID and the 4th character of the exercise ID do not match as illustrated in the next 2 lines.
4, 91, Es_5_2, TextEditor_Es_5_2, 13.11.2014 11:37:41, 13.11.2014 11:37:53, 27673, 6, 0, 2, 0, 252, 0
4, 91, Es_5_2, Other, 13.11.2014 11:37:54, 13.11.2014 11:37:59, 343, 0, 0, 4, 0, 171, 0
The next entry need NoT be discarded.
4, 91, Es_4_4, Blank, 13.11.2014 11:37:39, 13.11.2014 11:37:39, 0, 0, 0, 0, 0, 0, 0
- Note that the file contains hundreds of lines and these are only examples.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started