Lesson 17 of 34
List Methods: ಸೇರಿಸಿ, ತೆಗೆಯಿರಿ, Sort ಮಾಡಿ
9 min 25 XP
append() ಕೊನೆಗೆ ಸೇರಿಸುತ್ತದೆ, insert() ನಿರ್ದಿಷ್ಟ ಸ್ಥಾನದಲ್ಲಿ ಸೇರಿಸುತ್ತದೆ, remove() ಒಂದು value ಅಳಿಸುತ್ತದೆ, pop() ಕೊನೆಯ item ಹೊರತೆಗೆಯುತ್ತದೆ.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.ಸಂಖ್ಯೆಗಳ list ಗೆ sum(), max() ಮತ್ತು min() ತುಂಬಾ ಉಪಯುಕ್ತ. sort() ಚಿಕ್ಕದರಿಂದ ದೊಡ್ಡದಕ್ಕೆ ಜೋಡಿಸುತ್ತದೆ; sort(reverse=True) ವಿರುದ್ಧವಾಗಿ.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.ಒಂದೇ ಸಾಲಿನಿಂದ ಹಲವು ಸಂಖ್ಯೆಗಳನ್ನು ಓದಲು: input().split() strings ನ list ಕೊಡುತ್ತದೆ; ಪ್ರತಿಯೊಂದನ್ನೂ int ಗೆ ಬದಲಿಸಿ.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.