Python Tutorial: List - Introduction

Publié le: 15 août 2021
sur la chaîne: 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)


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial: List - Introduction durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn to code 15 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 55 fois et il a aimé 2 téléspectateurs. Bon visionnage!