Answers for "python tableau"

0

python tableau

l=10*[0]
print(l)
for i in range(len(l)):
    l[i]=10*[0]
print(l)
l[0][0]=1
print(l)
l[0][1]=2
print(l)
Posted by: Guest on March-15-2020
0

python tableau

>>> liste = list(range(1, 21))# créer la liste des entiers de 1 à 20 inclus 
>>> print([i for i in liste if i % 3 == 0])# afficher les éléments de 'liste' qui sont multiples de 3
[3, 6, 9, 12, 15, 18]
Posted by: Guest on March-15-2020
0

python tableau

l = [[0 for i in range(10)] for i in range(10)]
Posted by: Guest on March-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language