Python Tutorial: List - Introduction

Veröffentlicht am: 15 August 2021
auf dem Kanal: Learn to code
55
2

Python playlist -    • Python Tutorial: Python - Introduction  
string in python -    • Python Tutorial:  String in Python - I  
MultableVsImmutableType -    • Python Tutorial:  Mutable and Immutab...  

#region Notes
"""
1. Heterogeneous Elements
2. Ordered sequence
4. Accessed by index
3. No bound on the size
5. Mutable
"""

Return an element from the list at any given position.

Insert an element at any position of the list.

Remove the first occurrence of any element from a non-empty list.

Remove the element at a specified location from a non-empty list.

Replace an element at any position by another element.

Return the number of elements in the list.

Max elements in list

Min elements in list

Number of occurrence
#endregion

sentence="The rocket came back from mars"

for ele in sentence:
if ele in "aeiou":
print(ele)

vowels = [ele for ele in sentence if ele in "aeiou"]
print(vowels)


Auf dieser Seite können Sie das Online-Video Python Tutorial: List - Introduction mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Learn to code 15 August 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 55 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!