Derived Channel
1.54K subscribers
252 photos
4 videos
374 files
68 links
القناة الأساسية
@stepbystep001

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
a = [1, 2, 3]
b = [4, 5, 6]
c = a + b c =
Anonymous Quiz
35%
[5, 7, 9]
65%
[1, 2, 3, 4, 5, 6]
a = [1, 2, 3]
c = a * 3 c =
Anonymous Quiz
31%
[3, 6, 9]
69%
[1, 2, 3, 1, 2, 3, 1, 2, 3]
t = ['a', 'b', 'c', 'd', 'e', 'f']
t[1:3]
Anonymous Quiz
17%
['a', 'b', 'c']
35%
['b', 'c', 'd']
42%
['b', 'c']
5%
['a', 'b', 'c', 'd']
s = 'pining for the fjords' t = s.split() t =
Anonymous Quiz
6%
['pining']
13%
Error
81%
['pining', 'for', 'the', 'fjords']
a = [1, 2, 3] b = a b is a
Anonymous Quiz
60%
True
40%
False
t4 = [1, 2, 3]
t = t4[1:]
t4 =
Anonymous Quiz
42%
[2, 3]
39%
[1, 2, 3]
14%
[2]
5%
[1, 2, 3, 4]
t = ('a', 'b', 'c', 'd', 'e') t[0] = 'A'
Anonymous Quiz
4%
('a', 'b', 'c', 'd', 'e')
44%
('A', 'b', 'c', 'd', 'e')
39%
Error
13%
['A']
you can replace one tuple with another
Anonymous Quiz
46%
T
54%
F
t = ('a', 'b', 'c', 'd', 'e')
t = ('A',) + t[1:]
t
Anonymous Quiz
7%
('a', 'b', 'c', 'd', 'e')
49%
('A', 'b', 'c', 'd', 'e')
44%
Error
(0, 1, 2) < (0, 3, 4)
Anonymous Quiz
64%
T
36%
F
(0, 1, 2000000) < (0, 3, 4)
Anonymous Quiz
36%
T
64%
F
it copies the object and any references it contains
Anonymous Quiz
67%
deep copy
33%
shallow copy
To copy the contents of an object, including any references to embedded objects
Anonymous Quiz
67%
deep copy
33%
shallow copy
To copy the contents of an object as well as any embedded objects, and any objects
embedded in them, and so on
Anonymous Quiz
35%
shallow copy
65%
deep copy
16 // 5 =
Anonymous Quiz
74%
3
26%
3.2
16 % 5 =
Anonymous Quiz
79%
1
8%
3.2
12%
3
1%
16
16 / 5 =
Anonymous Quiz
3%
1
21%
3
74%
3.2
2%
16
t = ('a', 'b', 'c', 'd', 'e')
t = ('A') + t[1:]
t
Anonymous Quiz
10%
('a', 'b', 'c', 'd', 'e')
55%
('A', 'b', 'c', 'd', 'e')
35%
Error