Python Codes Basic to Advance
2.66K subscribers
82 photos
5 videos
8 files
100 links
Python Codes Basic to Advance

All Codes
@C_Codes_pro
@CPP_Codes_pro
@Java_Codes_Pro
@nodejs_codes_pro

Discussion
@bca_mca_btech
Download Telegram
Web Automation and Scraping using Python.zip
1.2 GB
📽 Web Automation and Scraping using Python - Udemy

By: @Python_Codes_Pro

More likes => more courses 🫶
👍31
# Generate AI image with the input text

pip install --upgrade MukeshAPI



from MukeshAPI import api
response = api.ai_image("cute boy pic")
#print(response)
with open("mukesh.jpg", 'wb') as f:
f.write(response)
print("image generated successfully")


By : @mr_sukkun

for more visit : https://pypi.org/project/MukeshAPI/
2🆒1
x=[1,2,3];y=[1,2,3];print(x is y)
Anonymous Quiz
68%
True
25%
False
7%
None
For websites developers help

Channel
@react_next_js

Group
@reactjs_nextjs_group
Jᴏɪɴ ᴜs :- @Python_Codes_Pro

Support group :- @python_group_pro
😁3👍2
-Location of Mobile Number Code -

import phonenumbers
from phonenumbers import (timezone,geocoder,carrier)

number = input("Enter the phone number with country code : ")

# Parsing String to the Phone number
phoneNumber = phonenumbers.parse(number)

# printing the timezone using the timezone module
timeZone = timezone.time_zones_for_number(phoneNumber)
print(f"timezone : {timeZone}")

# printing the geolocation of the given number using the geocoder module
geolocation = geocoder.description_for_number(phoneNumber,"en")
print(f"location : {geolocation}")

# printing the service provider name using the carrier module
service = carrier.name_for_number(phoneNumber,"en")
print(f"service provider : {service}")

Jᴏɪɴ ᴜs :- @Python_Codes_Pro

Support group :- @python_group_pro
2👍2
Python Codes Basic to Advance
Photo
Gues the correct answer
Anonymous Quiz
25%
A
34%
B
20%
C
22%
D
👍1
In Which Python library is used in Data Science 🤔
Anonymous Quiz
65%
Pandas
22%
Django
4%
React
8%
Flask
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
Top 5 Coding Challenge Platforms for Programmers 👩‍💻🚀

1. LeetCode
   - URL: https://leetcode.com
   - Description: Enhance problem-solving skills with a vast collection of coding challenges on LeetCode.

2. HackerRank
   - URL: https://www.hackerrank.com
   - Description: HackerRank offers diverse coding challenges for algorithm, data structure, and language proficiency improvement.

3. CodeSignal
   - URL: https://codesignal.com
   - Description: CodeSignal provides coding challenges and assessments to enhance coding skills for interviews and practice.

4. Codewars
   - URL: https://www.codewars.com
   - Description: Codewars engages developers in creative problem-solving through kata challenges, fostering skill development.

5. Exercism
   - URL: https://exercism.io
   - Description: Exercism offers coding exercises in various languages, providing mentorship and community support.

All the best 👍👍

Jᴏɪɴ ᴜs :- @CodesSnippet
👍21
Forwarded from IGNOU Info Guidance update news (Si͟d शर्मा)
Kaun jeetega?
Anonymous Poll
62%
BJP(NDA)
38%
Congress(INDI)
Python Oops challenge

What is the output of following Python Code?
👍3
Jᴏɪɴ ᴜs :- @Python_Codes_Pro

Support group :- @python_group_pro
1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
Rotate character using python.

import time
rotation_chars = ['-', '\\', '|', '/']
while True:
for char in rotation_chars:
print(char, end='\r')
time.sleep(0.5)

Language: Python
Jᴏɪɴ ᴜs :- @CodesSnippet
2
Convert Image to text

import pytesseract as t
from PIL import Image

img = Image.open("photo.jpg")
text = t.image_to_string(img)

print(text)


Language: Python

Jᴏɪɴ ᴜs :- @Python_Codes_Pro

Support group :- @python_group_pro
2
1
Convert Animated Gif to video

from os import remove,popen
import subprocess

def sprocess(a, b="utf-8"):
p = subprocess.Popen(a,shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
return str(p[0].decode(b)+p[1].decode(b))

vid = await message.reply_to_message.download()

print(sprocess("ffmpeg -y -i '" + vid + "' -map_metadata -1 s.mp4"))

durasi = popen("ffprobe -i '" + vid + "' -show_entries format=duration -v quiet -of csv='p=0'").read()

await message.reply_video(video="s.mp4")

remove("s.mp4")
remove(vid)


Sample response https://t.me/the_support_chat/146439
1👍1
y, z = 10, 15
y *= y + z
# What is the value of y. Explain How?
Anonymous Quiz
9%
10
7%
15
26%
25
21%
115
26%
250
5%
None of the above
6%
Show me the answer
👍1
Which of the following operators has the lowest precedence?
Anonymous Quiz
26%
not
16%
and
19%
**
21%
+
19%
%
👍2