-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSixteenth Day.py
More file actions
46 lines (26 loc) · 742 Bytes
/
Sixteenth Day.py
File metadata and controls
46 lines (26 loc) · 742 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
34
35
36
37
38
39
40
41
42
43
44
45
46
# ____________________ Sixteenth Day _________________ #
# Python Tuples
thisTuple = ("Noura","Amnah","Sara")
print(thisTuple)
#Empty tuples
thisTuple = ()
print(thisTuple)
thisTuple = (3,)
print(thisTuple)
thisTuple = (3, 1.3 ,4.2 , 7)
print(thisTuple)
thisTuple = ("Daliah", 1.1 , 4, "Python")
print(thisTuple)
thisTuple = ("Noura","Amnah","Sara")
print(thisTuple[1])
thisTuple = ("Noura","Amnah","Sara")
for x in thisTuple:
print(x)
thisTuple = ("Noura","Amnah","Sara")
#thisTuple[3] = "wafa" this will print an error
print(thisTuple)
thisTuple = ("Noura","Amnah","Sara")
#del thisTuple this will print an error
print(thisTuple)
thisTuple = ("Noura","Amnah","Sara")
print(thisTuple[0:3])