Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs
前往频道在 Telegram
👩💻 Wᴇʟᴄᴏᴍᴇ ᴛᴏ @CodesSnippet! 🚀 Jᴏɪɴ ᴜs ғᴏʀ ᴅᴀɪʟʏ sɴɪᴘᴘᴇᴛs ᴏғ ᴄᴏᴅɪɴɢ 🧩 ᴋɴᴏᴡʟᴇᴅɢᴇ! 💻💡 Hᴇʀᴇ, ʏᴏᴜ'ʟʟ ғɪɴᴅ 👀 ʙɪᴛᴇ-sɪᴢᴇᴅ ᴘɪᴇᴄᴇs ᴏғ ᴄᴏᴅᴇ, 🔥 ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴛɪᴘs, ᴀɴᴅ ᴛʀɪᴄᴋs ᴛᴏ ʟᴇᴠᴇʟ ᴜᴘ ʏᴏᴜʀ ᴄᴏᴅɪɴɢ sᴋɪʟʟs! 💪💻 Sᴛᴀʏ ᴜᴘᴅᴀᴛᴇᴅ ᴏɴ ᴛʜᴇ ʟᴀᴛᴇsᴛ ᴛʀᴇɴᴅs ɪɴ ᴛᴇᴄʜ
显示更多未指定国家技术与应用51 481
305
订阅者
无数据24 小时
-67 天
-630 天
吸引订阅者
十月 '2610月 '26
十月 '260
在0个频道中
九月 '260
在0个频道中
Get PRO
八月 '260
在0个频道中
Get PRO
七月 '260
在0个频道中
Get PRO
六月 '260
在0个频道中
Get PRO
五月 '260
在0个频道中
Get PRO
四月 '260
在0个频道中
Get PRO
三月 '260
在0个频道中
Get PRO
二月 '260
在0个频道中
Get PRO
一月 '260
在0个频道中
Get PRO
十二月 '250
在0个频道中
Get PRO
十一月 '250
在0个频道中
Get PRO
十月 '250
在0个频道中
Get PRO
九月 '250
在0个频道中
Get PRO
八月 '250
在0个频道中
Get PRO
七月 '250
在1个频道中
Get PRO
六月 '250
在1个频道中
Get PRO
五月 '250
在1个频道中
Get PRO
四月 '250
在0个频道中
Get PRO
三月 '250
在0个频道中
Get PRO
二月 '250
在1个频道中
Get PRO
一月 '250
在7个频道中
Get PRO
十二月 '240
在4个频道中
Get PRO
十一月 '240
在2个频道中
Get PRO
十月 '240
在0个频道中
Get PRO
九月 '24
+20
在2个频道中
Get PRO
八月 '24
+14
在2个频道中
Get PRO
七月 '24
+39
在3个频道中
Get PRO
六月 '24
+57
在2个频道中
Get PRO
五月 '24
+249
在2个频道中
频道帖子
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]
| 2 | What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 1)) | 608 |
| 3 | print((3 > 2) > 1) | 405 |
| 4 | Python won the "Best Community Support" award. Which year was it recognized for having the most helpful community? | 171 |
| 5 | How to set margin top and bottom in Tailwindcss ? | 159 |
| 6 | How can we set margin top and bottom in Tailwindcss ? | 1 |
| 7 | . | 1 |
| 8 | How can we write margin from top and bottom in tailwindcss? | 1 |
| 9 | What will be the output of the following Python code?
print("abc DEF".capitalize()) | 1 672 |
| 10 | What is the output of the above puthon code | 206 |
| 11 | a = [1, 2, 3]
a.append([4, 5])
print(len(a)) | 188 |
| 12 | Which tag is used to create a dropdown in HTML Form? | 220 |
| 13 | Guess the correct option | 222 |
| 14 | Guess the correct answer... | 209 |
| 15 | What's the right answer? | 245 |
| 16 | ⌨️ Python Quiz | 225 |
| 17 | Which of the following is a mutable data type in Python? | 241 |
| 18 | By using
sys.getsizeof(), you can easily measure the memory consumption of different data structures, helping you make informed decisions about which to use based on resource availability.
import sys
list1=[1,2,3,4,5]
tup1=(1,2,3,4,5)
print(sys.getsizeof(list1),"bytes")
print(sys.getsizeof(tup1),"bytes")
Output :
104 bytes
80 bytes
[Program finished]
📱 Join us for more Python tips: @CodesSnippet
#pythonhandbook
#pythonbook
#python3
#python | 240 |
| 19 | tuples=(1,2,4,5)
X,y=tuples
print (X,y) | 1 334 |
| 20 | tuples=(1,2,4,5)
X,*y=tuples
print (X,y) | 1 236 |
