Question: undefined Write a script that generates the integers 1-50 then processes them as follows: 1. Picks out multiples of 3 but not multiples of 5
undefined
Write a script that generates the integers 1-50 then processes them as follows: 1. Picks out multiples of 3 but not multiples of 5 and concatenates them to a string named T for Three. Commas separate values in the string T. Strip off the last comma in T. 2. Picks out multiples of 5 but not multiples of 3, appends them to a list named F for Five. 3. Picks out common multiples of both 3 and 5, writes them vertically in a column in a text file named B.txt for Both. Use the Runestone convention for writing text to a file -> outfile.write("stuff you're writing) Print out the string T and the list F to check your work. The text file B.txt will print itself. Run Original - 1 of 1 Show CodeLens 1 2 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
