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

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
In .... mode an expression, all by itself, has no visible effect
Anonymous Quiz
70%
script
30%
interactive
operations allowed with strings in python
Anonymous Quiz
17%
+
7%
*
73%
Both of them
2%
-
'Spam'*3
Anonymous Quiz
84%
'SpamSpamSpam'
16%
Error
The elements of a list don't have to be the same type
Anonymous Quiz
80%
T
20%
F
Lists are ....
Anonymous Quiz
26%
immutable
74%
mutable
strings are ...
Anonymous Quiz
60%
immutable
40%
mutable
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