Computer Science, asked by tharithasririya, 6 months ago

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 = ",")
a) 4,1,2,,3,
b) 4,3,2,,1,
c) 4,3,2,1,
d) 4,1,2,3,​

Answers

Answered by hoangmustang
7

Answer:

The answer is c 4,3,2,1,

You can see the output:

Explanation:

BRAINLIEST!

Attachments:
Answered by shahaladanish
1

Answer:

c is the right answer for this question

Similar questions