Question: 4. Fix the program so that it can print 1, 2,3,4,5 in the same line. things str([1, 2, 3, 4, 5]) for thing in
4. Fix the program so that it can print 1, 2,3,4,5 in the same line. things str([1, 2, 3, 4, 5]) for thing in things: print (thing) 5. This code is supposed to print [1, 2, 3, 4, 5, 6]. Fix it without changing the list named before. before [[1, 2], [3, 4], [5, 6]] after = [] for number in before: after.append(number) print(after)
Step by Step Solution
There are 3 Steps involved in it
4 things 12345 remove str for thing in things pr... View full answer
Get step-by-step solutions from verified subject matter experts
