…………………..data type is used to implement Queue data structure in Python.…………………..डेटा प्रकार का उपयोग पायथन में कतार डेटा संरचना को लागू करने के लिए किया
…………………..डेटा प्रकार का उपयोग पायथन में कतार डेटा संरचना को लागू करने के लिए किया
जाता है।
Show answerHide answer
Correct answer: (D) Listलिस्ट
Explanation
A Python list can act as a queue by adding items with append() and removing them from the front with pop(0). Sets and dictionaries have no order suited to FIFO, and tuples cannot be changed.Python की list को queue की तरह इस्तेमाल किया जा सकता है: append() से आइटम जोड़ें और pop(0) से आगे से हटाएँ। Set और dictionary का क्रम FIFO के लिए उपयुक्त नहीं है, और tuple बदला नहीं जा सकता।