Discussion Thread (W-11): What you learn Today

View Make forum posts: 1

Discussion Thread (W-11): What you learn Today

Number of replies: 42

1. Create a 2-by-5 array containing reverse order of the even integers from 2 through 10 in the first row and the odd integers from 1 through 9 in the second row. using numpy

In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by MD RAKIBUL ISLAM(193-15-3015) -
 This week, I have learned about  Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.

Thank you ma'am 🙃
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Samanta Sajjad 193-15-3023 -
In this week, I have learned about
1) Array from existing data
2)Array attributes
3)Array Operators
4) NumPy methods
5)Shallow copies
6)Deep copies
7) Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Rony Ahmed -
I have learned about Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Md. Jannatul Ferdous 191-15-2497 -
In this week, I've learned about NumPy.


Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)


In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Ahmad Umar Mahdi 193-15-1071 -
import numpy as np

array_2D = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])
array_2D
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Jackson Talukder -

import numpy as np

arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(arr)

In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Tahia Binte Humayun -
import numpy as my_numpy

my_array = my_numpy.array([[val for val in range(10,0,-2)],[val for val in range(9,0,-2)]])
print("The 2 by 5 array is\n",my_array,"\n")
In reply to Tahia Binte Humayun

Re: Discussion Thread (W-11): What you learn Today

by Tahia Binte Humayun -
Output:
The 2 by 5 array is
[[10 8 6 4 2]
[ 9 7 5 3 1]]
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Mohaiminul Islam -
■Import numpy as np

arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Arafat Rahman Medul 193-15-1073 -
import numpy as np

array_2D = np.array([[t for t in range(10,0,-2)],[t for t in range(9,0,-2)]])
array_2D
Attachment python code.PNG
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by jannatul mawa (192-15-1063) -
In this week, I've learned about NumPy.

Import number as np
arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by MD: AL AMIN PATWARY -
Import number as np
arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by NUSRAT JAHAN (193-15-2924) -
import numpy as np

array_2D = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])
array_2D
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Apel Mahmud (193-15-2984) -
I have learned about Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Muhammad Shahedul Islam (193-15-2997) -
In this week, I've learned about NumPy.

Import number as np
arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Anik Sheikh (193-15-3000) -
In this week, I have learned about
1) Array from existing data
2)Array attributes
3)Array Operators
4) NumPy methods
5)Shallow copies
6)Deep copies
7) Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Razia Sultana Misu(193-15-2976) -
In this week,We have learned about numpy.

Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Joshinta Jerin -
Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Tamanna Akter (193-15-2937) -
This week, I have learned about Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Abdul Wahid 193-15-2992 -

Source code:

import numpy as np
numbers=np.array([[x for x in range(10,1,-2)],[x for x in range (10,1,-2)]])
print(numbers)

OUTPUT:

In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Al Amin 193-15-2981 -
import numpy as np
numbers=np.array([[x for x in range(10,1,-2)],[x for x in range (10,1,-2)]])
print(numbers)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Ata-E-Elahi 193-15-2946 -
This week, I have learned about Array from existing data, array attributes, array Operators, NumPy methods, Shallow copies, Deep copies, Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Afsana Akter 192-15-2843 -
I've learned about NumPy.


Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Fahamidur Rahaman(192-15-2863) -
In this week, I have learned about
1) Array from existing data
2)Array attributes
3)Array Operators
4) NumPy methods
5)Shallow copies
6)Deep copies
7) Examples using NumPy in python.
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Sadnam Saniat 192-15-2794 -
Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Al-Ifran (193-15-2915) -
Import numpy as np:

array1 = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(array1)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by RIFAT ahmed (193-15-2911) -
I've learned about NumPy.


Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Mahmuda Akter Lopa 191-15-1030 -
import numpy as py
my_num = py.array([[x for x in range(10,1,-2)],[x for x in range (10,1,-2)]])
print(my_num)
In reply to First post

Re: Discussion Thread (W-11): What you learn Today

by Md.Eamon Rahman (193-15-2967) -
In this week, I've learned about NumPy.


Import numpy as np:

my_arr = np.array([[x for x in range(10,0,-2)],[x for x in range(9,0,-2)]])

print(my_arr)