140k views
1 vote
How to input out smaller cars get better gas mileage tiny cars get great fuel

User JadedCore
by
7.5k points

1 Answer

4 votes

Answer:

The program displays word pairs that differ between the two sentences. One pair is displayed per line.

Ex: If the input is:

Smaller cars get better gas mileage

Tiny cars get great fuel economy

then the output is:

Smaller Tiny

better great

gas fuel

mileage economy

Hint: Store each input line into a list of strings.

Step-by-step explanation:

User Revprez
by
7.0k points