🔧 Python notes
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
List = []
squares = [x**2 for x in range(5)]
squares = [x**2 for x in range(5)]
An ordered, mutable collection of elements.
Methods
append(x) → Add at the end.
insert(i, x) → Add at index i.
extend(iterable) → Concatenate another list.
pop([i]) → Remove and return element at i (default last).
remove(x) → Remove first occurrence of x.
clear() → Remove all elements.
Check Existence: x in my_list
Sort: my_list.sort() or sorted(my_list)
Reverse: my_list.reverse()
Count: my_list.count(x)
Index of Element: my_list.index(x)
Copy: my_list.copy()
len(my_list) → Length of list.
max(my_list), min(my_list) → Largest/smallest element.
sum(my_list) → Sum of elements (for numeric lists).
squares = [x**2 for x in range(5)]
List comprehension squares = [x**2 for x in range(5)]
csdf
sdfv
sdfv
sdfv
sdfv
sdfv
sdfv
sdfv
dsfv
...
🍏 34 Notes About Math Notes
📈 17.27 Punkte
🍏 iOS / Mac OS
🍏 34 Notes About Math Notes
📈 17.27 Punkte
🍏 iOS / Mac OS
🔧 Notes on Notes
📈 17.27 Punkte
🔧 Programmierung
🔧 NoteYard - Piano Notes | Keyboard Notes
📈 17.27 Punkte
🔧 Programmierung
📰 How To Pin Notes In The Notes App In iOS 11
📈 17.27 Punkte
🖥️ Betriebssysteme
🍏 Standard Notes 3.138.4 - Encrypted notes app.
📈 17.27 Punkte
🍏 iOS / Mac OS