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

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

Open in Telegram

👩‍💻 Wᴇʟᴄᴏᴍᴇ ᴛᴏ @CodesSnippet! 🚀 Jᴏɪɴ ᴜs ғᴏʀ ᴅᴀɪʟʏ sɴɪᴘᴘᴇᴛs ᴏғ ᴄᴏᴅɪɴɢ 🧩 ᴋɴᴏᴡʟᴇᴅɢᴇ! 💻💡 Hᴇʀᴇ, ʏᴏᴜ'ʟʟ ғɪɴᴅ 👀 ʙɪᴛᴇ-sɪᴢᴇᴅ ᴘɪᴇᴄᴇs ᴏғ ᴄᴏᴅᴇ, 🔥 ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴛɪᴘs, ᴀɴᴅ ᴛʀɪᴄᴋs ᴛᴏ ʟᴇᴠᴇʟ ᴜᴘ ʏᴏᴜʀ ᴄᴏᴅɪɴɢ sᴋɪʟʟs! 💪💻 Sᴛᴀʏ ᴜᴘᴅᴀᴛᴇᴅ ᴏɴ ᴛʜᴇ ʟᴀᴛᴇsᴛ ᴛʀᴇɴᴅs ɪɴ ᴛᴇᴄʜ

Show more
The country is not specifiedTechnologies & Applications51 481
305
Subscribers
No data24 hours
-67 days
-630 days
Posts Archive
😂
😂

Guess the Output? print(not None)
Anonymous voting

Class and Objects in Python
class Person:
    std="sixth"

    def __init__(self,name):
        self.name=name
        self.std=std
    def showdeatils(self):
        return f"My name is {self.name} and I`m Studying in {self.std}"
boy1=Person("Mukesh")
print(boy1.showdeatils())
for More details Visit : Link Language: Python Jᴏɪɴ ᴜs :- @CodesSnippet

#TASK 1.Write a Python script to create a list of first N terms of a Fibonacci series. 2. Write a Python script to create a list of first N prime numbers.
Don't use any library/module

Create array in python
import array
l1=array.array("i",[1,2,4,8])
print(l1)
for i in l1:
    print(i)
# convert array into list
to_list=l1.tolist()
print(to_list)
# convert array into byte
print(l1.tobytes())

# find type code of array
print(l1.typecode)

# give buffer info>>>> location  and length of array
print(l1.buffer_info())

#  find item size

print(l1.itemsize)
for More details Visit : link

console.log(!(!(!(!(!(!(!(!((false))))))))));
Anonymous voting

Alternative of print func in python
import logging
logging.basicConfig(level=logging.INFO)
logging.info('This is an alternative to print using logging module!')
2nd Method
import sys
sys.stdout.write("This is 2nd alternative to print using logging module")

n = 4 print((n & (n - 1)) == 0)
Anonymous voting

#python Guess the Output ? a=[ "One", "Two", "Three", "Four" "Five", "Six" ] print(len(a))
Anonymous voting

Tips to Merge two dictionary
boy={"ram":70,"Sundar":80}

girl={"riya":80,"Sonali":70}

student=boy | girl

print(student)
Language: Python Jᴏɪɴ ᴜs :- @CodesSnippet

Day 06 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link
Day 06 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link

Day 05 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link
Day 05 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link

Day 04 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link
Day 04 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link

WiFi Passwords Source Code
import subprocess

data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split('\n')

profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]

for i in profiles:
    try:
        results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8', errors="backslashreplace").split('\n')
        results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
        try:
            print ("{:<30}|  {:<}".format(i, results[0]))
        except IndexError:
            print ("{:<30}|  {:<}".format(i, ""))
    except subprocess.CalledProcessError:
        print ("{:<30}|  {:<}".format(i, "ENCODING ERROR"))

input("")
Language: Python Jᴏɪɴ ᴜs :- @CodesSnippet

Day 03 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link
Day 03 of 30 Days of Coding.👾🫧 Solution :- Link GitHub Code : Link

What will be the output of the following Python code snippet?
Anonymous voting

Day 02 of 30 Days of Coding.👾🫧 Solution :- Link