Question: Program 1 - Write a program that reads a line, tokenizes ( splits to words ) the line using the function split, and then prints

Program 1- Write a program that reads a line, tokenizes (splits to words) the line using the function split, and then prints the tokens in reverse order.Program 2- Write a program that reads the equation as a string and prints the result. Some examples:Example 1- "one plus three", the result is 4Example 2- "five times six", the result is 30Example 3- "ten minus four", the result is 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!