मराठी

Find the output of the following code: result=0 numberList=[10,20,30] numberList.append(40) result=result+numberList.pop() result=result+numberList.pop() print(“Result=”,result) - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Find the output of the following code:

result=0
 numberList=[10,20,30]
 numberList.append(40)
 result=result+numberList.pop()
 result=result+numberList.pop()
 print(“Result=”,result)
एका वाक्यात उत्तर

उत्तर

Output = 70

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×