Python Tutorial: List - Introduction

Publicado em: 15 Agosto 2021
no canal de: 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)


Nesta página do site você pode assistir ao vídeo on-line Python Tutorial: List - Introduction duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learn to code 15 Agosto 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 55 vezes e gostou 2 espectadores. Boa visualização!