Question: PYHTON PROGRAMMING (PYTHON CODE) list1.txt: Sam Smith sam_s Jack Grey jack_g Derek Pride derek_p Albert White albert_w List2.txt: Sam Smith 12345678 Jack Grey 23456781 Derek
PYHTON PROGRAMMING
(PYTHON CODE)
list1.txt:
Sam Smith sam_s
Jack Grey jack_g
Derek Pride derek_p
Albert White albert_w
List2.txt:
Sam Smith 12345678
Jack Grey 23456781
Derek Pride 34567812
Albert White 45678123
QUESTION 1- --> Using the two input files above create a file called "list3.txt" which contains below: (PYTHON CODE)
Sam Smith sam_s 12345678
Jack Grey jack_g 23456781
Derek Pride derek_p 34567812
Albert White albert_w 45678123
Hint: There are tabs between lastname, username and SSN.
Question 2 ---> Write the prime numbers smaller than 30 into the file called prime.txt.
(PYTHON CODE)
Hint: Use two while loops
(PYTHON CODE)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
