Обсуждения
a =[ 1, 1, 2, 3, 5, 8, 19, 21, 34, 55, 89
] [82, 12, 41, 38, 19, 26, 9, 48, 20, 55, 8, 32, 3]
how to display numbers that have number 2 in the array a = [1,1,2,3,5,8] for a[1] in a:
pass
print(a)
result :[1, 8, 2, 3, 5, 8]
want to know how index-1 is replaced as 8. first = {1, 2, 3, 4, 5, 6}
second = {4, 5, 6, 7, 8, 9}
third={2,4,6,8,0}
fourth=([4,6,8,5])
print(first | second | third )
prin why the code second-first print 8,9,7 and not 7,8,9?
first = {1, 2, 3, 4, 5, 6}
second = {4, 5, 6, 7, 8, 9}
print(second - first) 1. What will be the output?
1.
>>> m = [[x, x + 1 , x + 2] for x in ran
a) [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b) [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
c) [1, 2, 3, 4, 5, 6, 7, 8, 9]
d) [0, 1, 2, 1, 2, 3, 2, 3, 4]