PYTHON PROGRAMMING
رفتن به کانال در Telegram
https://t.me/addlist/oJIs6WVKrqBmMWQ1 Hello! I am @Myhurthearts and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills , just let me know!
نمایش بیشتر3 585
مشترکین
+424 ساعت
+17 روز
-530 روز
آرشیو پست ها
3 588
Repost from Python Codes Basic to Advance
way to create array and perform operation using numpy.
pip install numpy
code :
import numpy as n
# creating array
d=n.array([1,2,3])
d2=n.array([4,5,6])
print(d) #it doesnt seperated with comma
print(d2) #it doesnt seperated with comma
# performing operation
print(d+d2) #it adds the corresponding elements of the arrays
print(d2-d) #it subtracts the corresponding elements of the arrays
print(d*d2) #it multiplies the corresponding elements of the arrays
#similary you can do operation with single element
d3=n.array([10])
print(d*d3)
print(d+d3)
print(d-d3)
Output:-
[1 2 3] [4 5 6] [5 7 9] [3 3 3] [ 4 10 18] [10 20 30] [11 12 13] [-9 -8 -7]
3 588
Repost from 𝐍ᴀᴅᴀɴ 𝐏ᴀʀɪɴᴅᴇ
👛🟠⚪️🟠💎💎💎💎🖼🌐
Jisne abhi bhi Hamster 🐹 bot open nhi Kiya karlo widhrawal bhi aagya bs 1 week hai abhi 👉
https://t.me/hamsteR_kombat_bot/start?startapp=kentId6314368173
💎💎💎💎💎💎💎💎💎💎
3 588
In Python3, Whatever you enter as input, the input() function converts it into a string
3 588
Which year did Python officially win the “Most Loved Language by Beginners” award?
