Lesson 16 of 34
Lists: ఎన్నో విలువలు ఒకే చోట
9 min 25 XP
40 మంది విద్యార్థుల మార్కులకు 40 variables అక్కర్లేదు! list ఎన్నో విలువలను క్రమంలో ఉంచుతుంది. వాటిని [ ] లోపల comma లతో వేరు చేసి రాయండి.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.index ఉపయోగించి ఒక item ను మార్చవచ్చు. Slicing [start:stop] list లో ఒక భాగాన్ని ఇస్తుంది (stop చేరదు).
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.for loop list లోని ప్రతి item ను చూస్తుంది.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.ఒక list లో వేర్వేరు types ఉండవచ్చు: [1, "two", 3.0, True]