Question: What is the output of the following Python code? string = '1 2 3 4' string = string.split(' ') for ch in string[::-1]: print

What is the output of the following Python code? string = '1

What is the output of the following Python code? string = '1 2 3 4' string = string.split(' ') for ch in string[::-1]: print (ch, end = ",") ) 4,1,2,,3, b) 4,3,2,,1, c) 4,3,2,1, d) 4,1,2,3, 6.

Step by Step Solution

3.56 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Py... View full answer

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!