मराठी

Find the output of the following code: answer=[]; output='' answer.append('T') answer.append('A') answer.append('M') ch=answer.pop() output=output+ch ch=answer.pop() output=output+ch ch=answer.pop - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Find the output of the following code:

answer=[]; output=''
 answer.append('T')
 answer.append('A')
 answer.append('M')
 ch=answer.pop()
 output=output+ch
 ch=answer.pop()
 output=output+ch
 ch=answer.pop()
 output=output+ch
 print(“Result=”,output)
एका वाक्यात उत्तर

उत्तर

Output - MAT

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 3: Stack - Exercise [पृष्ठ ५२]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
पाठ 3 Stack
Exercise | Q 2. b) | पृष्ठ ५२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×