हिंदी

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×