create account

Solving ChatGPT Prompt NumPy Exercise by leoumesh

View this thread on: hive.blogpeakd.comecency.com
· @leoumesh ·
$4.12
Solving ChatGPT Prompt NumPy Exercise
<div class="text-justify">

![image.png](https://images.hive.blog/DQmNyYRsd56m9synXCcndQMZwBRakffY9QgBQri7WAYqneF/image.png)
<center>
[Image Source](https://medium.com/nerd-for-tech/numpy-a-boon-package-a278e4ed7d4e)
</center>

Most people claim ChatGPT is a bad thing to use as it hinders your memory performance. I agree with this one as it can hinder your learning if you always use it for cheating, relies fully on it, contributing no effort from your side. Relying fully on ChatGPT is also not recommended as it generates inaccurate information most of the time. 

It has both negative and positive aspects. You can learn a many things if you use it rationally. You should also know cheat codes for the prompts. So in this post, I am asking ChatGPT to give me one exercise in NumPy and we will try to solve it on our own.

**Prompts: Give me one exercise to do myself regarding NumPy. Don't include the code. I will try to solve on my own.**

![image.png](https://images.hive.blog/DQmav1UnDH4HhvkpbPz9BP5g2w2PexB4k7e5WTLnqQDzcTj/image.png)

Now lets try to solve the problems.

```
import numpy as np

# Creating a 5*5 array using random function to fill the array with random integer
array_1 = np.random.randint(1,100,(5,5))

#Checking the dimension of the array
array_1.shape

# Printing the array
array_1

# Finding the mean
array_1.mean()

# Finding the standard deviation
array_1.std()

# Finding the sum of all values in the array
array_1.sum()

# Finding the maximum value
array_1.max()

# Finding the minimum value
array_1.min()

# Sum across column
array_1.sum(axis=0)

#Sum across row
array_1.sum(axis=1)
```
If you run the above code, you can get the following output:


![image.png](https://images.hive.blog/DQmZFBXCKLtFbSXuGYMrGGvGvVh2Pfpr9rdUbWejPshkm7V/image.png)

![image.png](https://images.hive.blog/DQmUywZdMrK4BVsKnqJmmzSFS83iiGAxYF4JqnxuPPvAXW5/image.png)

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 244 others
properties (23)
authorleoumesh
permlinksolving-chatgpt-prompt-numpy-exercise
categoryhive-196387
json_metadata{"tags":["programming","python","numpy","stem","tutorial","exercise","chatgpt"],"image":["https://images.hive.blog/DQmNyYRsd56m9synXCcndQMZwBRakffY9QgBQri7WAYqneF/image.png","https://images.hive.blog/DQmav1UnDH4HhvkpbPz9BP5g2w2PexB4k7e5WTLnqQDzcTj/image.png","https://images.hive.blog/DQmZFBXCKLtFbSXuGYMrGGvGvVh2Pfpr9rdUbWejPshkm7V/image.png","https://images.hive.blog/DQmUywZdMrK4BVsKnqJmmzSFS83iiGAxYF4JqnxuPPvAXW5/image.png"],"links":["https://medium.com/nerd-for-tech/numpy-a-boon-package-a278e4ed7d4e"],"app":"hiveblog/0.1","format":"markdown"}
created2024-07-05 04:19:15
last_update2024-07-05 04:19:15
depth0
children3
last_payout2024-07-12 04:19:15
cashout_time1969-12-31 23:59:59
total_payout_value2.022 HBD
curator_payout_value2.100 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,889
author_reputation212,340,493,251,438
root_title"Solving ChatGPT Prompt NumPy Exercise"
beneficiaries
0.
accountstemsocial
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id135,078,139
net_rshares13,954,231,618,493
author_curate_reward""
vote details (308)
@stemsocial ·
re-leoumesh-solving-chatgpt-prompt-numpy-exercise-20240706t041923736z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Thanks for including @stemsocial as a beneficiary, which gives you stronger support.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-leoumesh-solving-chatgpt-prompt-numpy-exercise-20240706t041923736z
categoryhive-196387
json_metadata{"app":"STEMsocial"}
created2024-07-06 04:19:24
last_update2024-07-06 04:19:24
depth1
children0
last_payout2024-07-13 04:19:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length545
author_reputation22,927,767,309,334
root_title"Solving ChatGPT Prompt NumPy Exercise"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id135,098,041
net_rshares0
@suzn.poudel ·
khatra padhai bhaeracha ta bro.
properties (22)
authorsuzn.poudel
permlinksga6cy
categoryhive-196387
json_metadata{"app":"hiveblog/0.1"}
created2024-07-08 01:19:51
last_update2024-07-08 01:19:51
depth1
children1
last_payout2024-07-15 01:19:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation70,162,157,416,366
root_title"Solving ChatGPT Prompt NumPy Exercise"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id135,132,819
net_rshares0
@leoumesh ·
Haha bro 
Kaam le khasai ghumna jana paidaina
Na payesi content hudaina
Alxi lagxa padhna ni🤣
properties (22)
authorleoumesh
permlinksgb072
categoryhive-196387
json_metadata{"app":"hiveblog/0.1"}
created2024-07-08 12:04:15
last_update2024-07-08 12:04:15
depth2
children0
last_payout2024-07-15 12:04:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length93
author_reputation212,340,493,251,438
root_title"Solving ChatGPT Prompt NumPy Exercise"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id135,140,563
net_rshares0