Solution Exercice 18: numpy algorithme design
Exercice 18 || Solution Ecrir un programme python-numpy qui crée et affiche la matrice du type 9x9 suivante:
1 2 3 4 5 6 7 8 9 10 11 |
[[1. 1. 1. 1. 1. 1. 1. 1. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 2. 2. 2. 2. 2. 2. 2. 1.] [1. 1. 1. 1. 1. 1. 1. 1. 1.]] |