-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathday13.py
More file actions
33 lines (30 loc) · 753 Bytes
/
day13.py
File metadata and controls
33 lines (30 loc) · 753 Bytes
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
# week 3 __ day13
#to make a list
my_list = [100,200,300]
print(my_list)
#===============================
name_of_student =['muteb', "ahmed", "trurki"]
print(name_of_student)
print(name_of_student[1])
#================================
city_of_ksa =['riyadh',"makkah","jeddah","dammam","jazan"]
for n in city_of_ksa:
print(n)
#===============================
#create a list for a decimal number:
my_list =[11.2 ,20.4 , 33.5 , 44.6]
for x in my_list:
print(x)
#===================================
#change a mumber of from the_list :
the_list=["apple","banana","cherry"]
print(the_list)
the_list[1]="orange"
print(the_list)
del the_list[2]
print(the_list)
list_no=[12,15,20,25,30]
print(list_no)
del list_no[0]
del list_no[1]
print(list_no)