Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
student1 = "Micheal"
student2 = "MIchele"
student3 = "Melchior"
student4 = "Mathieu"
print (student1,",", student2,",", student3,",", student4)

#Create a list
students = ["Micheal", "MIchele", "Melchior", "Mathieu", "ll"]
age = [15, 13, 12, 12]

# Print list size
print ("taille de students = "+str(len(students)))

# Print list content
print (students)

#print (students[1])

for x in 1,2,3:
  print (students[x])

students[3] = "Emmanuel"

students[4] = "Victor"

students[len(students)-1] = "CHannel"

# students.extend

students.append("Mathias")
students.remove("Melchior")

print (students)

students.pop(0)
print (students)