fa
Feedback
Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs

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 روز
آرشیو پست ها
Important String Methods
Important String Methods

To concatenate two strings to a third what statements are applicable?
Anonymous voting

🖥 How to hide secret text inside an image using Python? Nothing complicated, you just need the Stegano library: # pip instal
🖥 How to hide secret text inside an image using Python? Nothing complicated, you just need the Stegano library:
# pip install stegano

from stegano import lsb
secret = lsb.hide('image.png', 'very secret text')
secret.save('secret_image.png')

print(lsb.reveal('secret_image.png'))

Solution by @Orbhaikyahallhai
def count_digits(n):
    if n == 0:
        return 1
    n = abs(n)  
    count = 0
    while n > 0:
        n = n // 10
        count += 1
    return count

Solve it : Dont use split or indexing method.
Solve it : Dont use split or indexing method.

Solve this using while loop ➰! Note :- Don't use len function
Solve this using while loop ➰! Note :- Don't use len function

In Python, lists are mutable.
Anonymous voting

Which of the following is not a complex number?
Anonymous voting

print(min("hHiI"))
Anonymous voting

Repost from PYTHON PROGRAMMING
print(max("hHiI"))
Anonymous voting

print(bool(0)) print(bool(''))
Anonymous voting

print(bool(0)) print(bool('')
Anonymous voting

print(bool('0')) print(bool(0))
Anonymous voting

⌨️ String Methods in Python
⌨️ String Methods in Python

s = set() s.add(20) s.add(20.0) s.add("20") print(len(s))
Anonymous voting

What is the output of following Python Code?
What is the output of following Python Code?

The Ultimate Python Handbook (2).pdf1.65 MB

Repost from PYTHON PROGRAMMING
❔ Interview question How do any() and all() work? Answer: any() - takes a sequence and returns true if any element in the seq
❔ Interview question How do any() and all() work? Answer: any() - takes a sequence and returns true if any element in the sequence is true. all() - Returns true only if all elements in the sequence are true. ➡️ Python Developer