🎉 Thank you so much for being the 1500th member of our python coding channel! 🥳 Your presence is highly appreciated and welcomed in advance. 🙌 Feel free to share the knowledge and join the discussions at
@Python_Codes_Pro.
Also, don't forget to check out our support group with 400 members for engaging discussions and help at
@python_group_pro
. 🚀 Let's learn and grow together in the world of coding! 💻🌟
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
@Python_Codes_Pro.
Also, don't forget to check out our support group with 400 members for engaging discussions and help at
@python_group_pro
. 🚀 Let's learn and grow together in the world of coding! 💻🌟
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
👍2❤1
Guess the Output:
Leave answer in comment:
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
Leave answer in comment:
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
❤1
What will be the output of the following Python code?
Anonymous Quiz
29%
m, y, , n, a, m, e, , i, s, , x,
16%
m, y, , n, a, m, e, , i, s, , x
43%
my, name, is, x,
12%
error
❤2👍2
In Python, the exec() function is used to execute dynamically created Python code. It takes a string as an argument which holds the Python code that you want to execute.
# Define the Python code as a string
code="""for i in range(1,10+1):
print(i)"""
exec(code)
❤1👍1
*
+++
*****
+++++++
*********
+++++++++++
*************
+++++++++++++++
*****************
+++++++++++++++
*************
+++++++++++
*********
+++++++
*****
+++
*👍1
Python Codes Basic to Advance
* +++ ***** +++++++ ********* +++++++++++ ************* +++++++++++++++ ***************** +++++++++++++++ ************* +++++++++++ ********* +++++++ ***** +++ *
Challenge:
Draw given pattern using python.
Language: Python
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
Draw given pattern using python.
use ur own logic ..
Language: Python
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
Finds bugs.
string = "noon"
if string == string[::-1]:
print('palindrome')
else:
print("not palindrome")
😁4
Forwarded from ˹ᴍʀ sᴜᴋᴋᴜɴ˼ (Mᴜᴋᴇsʜ)
# Generate Chatgpt AI with the input text
with mode params:
sample response:
without mode
sample response:
for more visit : https://pypi.org/project/MukeshAPI/
pip install --upgrade MukeshAPI
with mode params:
# available modes are "girlfriend","anime","animev2","flirt","santa","elonmusk"
from MukeshAPI import api
response = api.chatgpt("hi babe",mode-="girlfriend")
print(response)
sample response:
*whispers softly* Mmm... Hello, my love! 🤗 What brings you here today? Is there anything special on your mind? Or maybe you just wanted to see me and talk... feel free to share whatever's on your heart.
#
without mode
from MukeshAPI import api
response = api.chatgpt("hi babe")
print(response)
sample response:
Hello. How can I assist you today?By : @mr_sukkun
for more visit : https://pypi.org/project/MukeshAPI/
❤1👍1
What will be the output of the following Python code snippet?
Anonymous Quiz
22%
-2 -1
23%
0
43%
error
12%
none
❤4👍1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (Mᴜᴋᴇsʜ)
WiFi Passwords Source Code
Language: Python
Jᴏɪɴ ᴜs :- @CodesSnippet
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
❤2
Tips to Merge two dictionary
Language: Python
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
boy={"ram":70,"Sundar":80}
girl={"riya":80,"Sonali":70}
student=boy | girl
print(student)Language: Python
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
❤2
Why True in python starts from capital 'T' rather than small 't' ?
Give valid reason
❤2
❤3