Question: in python Write a program, in a file named two_lines_of_words.py , which reads two lines of input from the user. Use split() to break each
in python
Write a program, in a file named two_lines_of_words.py , which reads two lines of input from the user. Use split() to break each one into words. Next, print out each of the two arrays of words, along with a little bit of explanatory text (see the example below for details). Then print a blank line. To print a blank line, call print() with no arguments; it will print nothing, and then follow it up with a newline. Next, concatenate the two arrays together, and print out some information about the combined array, followed by another blank line; again, see below for details. Finally, sort the combined array, and then print it out, followed by a final blank line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
