Python Codes Basic to Advance
2.65K 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
# भगवत गीता - Bhagwat Geeta summary

import urllib.request
import json
chapter = input("Enter chapter number: ")
url = "https://bhagavad-gita3.p.rapidapi.com/v2/chapters/" + chapter + "/"
headers = {
"X-RapidAPI-Key": "00172e5054mshf7fe92ad8b4a5aap1ffa03jsnff24b9e4d834",
"X-RapidAPI-Host": "bhagavad-gita3.p.rapidapi.com"
}

req = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(req) as response:
data = response.read().decode('utf-8')

out = json.loads(data)
print(f"Chapter name: {out['name']}")
print(f"Summary in Hindi: {out['chapter_summary_hindi']}")
print(f"Summary in English: {out['chapter_summary']}")
😁1
Current datetime using python of India.

Are you added coding folder? 👇
https://t.me/addlist/2UhsQW_cGzkxMzg1
3
import urllib.request
import json
input=input("enter text to generate hastag : ")
url=f"https://mukesh-api.vercel.app/hastag/{input}"
req = urllib.request.Request(url)
with urllib.request.urlopen(req) as response:
data = response.read().decode('utf-8')

out = json.loads(data)
print(out)
1
Practice your codes in @io_coding

Join coding:
https://t.me/addlist/2UhsQW_cGzkxMzg1
👏2
Now it's discussion group is public you can join it
https://t.me/python_group_pro
Select your group/channel/service
t.me/Sid_info/69
import urllib.request
import json

url=f"https://mukesh-api.vercel.app/mahadev"
req = urllib.request.Request(url)
with urllib.request.urlopen(req) as response:
data = response.read().decode('utf-8')

out = json.loads(data)
print(out["result"])

Are you added coding folder? 👇
https://t.me/addlist/2UhsQW_cGzkxMzg1
1
import pyshorteners

link =input("enter the url link")

shortener = pyshorteners.Shortener()
try:
tiny_link = shortener.tinyurl.short(link)
print(" shortend url Link :- ", tiny_link)

except:
print("error while converting shorts link")


Are you added coding folder? 👇
https://t.me/addlist/2UhsQW_cGzkxMzg1
2🔥1
40+ java strings methods 👇

https://t.me/Java_Codes_Pro/91
#Read file using python 
X=open("replit.nix","r")
print(X.read())

# Read file using python
1
aap log ko python kitna level tak aata hai? please leave a comment us basis of idhar code mai upload krta ....
Who is at begging level of coding

I suggest to watch this c language playlist
C language is starting language of any programmer for developing coding understanding only in 2 hours


Start coding ( 2 hours full ) 5 to 10 minutes videos only
https://www.youtube.com/playlist?list=PLjEYzWkdEvxv5Byb-QnlQrjsuDuhpXX1G
Python Codes Basic to Advance pinned «Who is at begging level of coding I suggest to watch this c language playlist C language is starting language of any programmer for developing coding understanding only in 2 hours Start coding ( 2 hours full ) 5 to 10 minutes videos only https://www…»
# Translator Api Using python
import urllib.request
import json
text=input("Enter text to translate :- ").replace(" ","")
lang=input("Enter Destination langauge code in which you want to translate :- ")

url=f"https://mukesh-api.vercel.app/translate/{text}/{lang}"
req = urllib.request.Request(url)
with urllib.request.urlopen(req) as response:
    data = response.read().decode('utf-8')

out = json.loads(data)
print(out["results"])

'''ʟᴀɴɢᴜᴀɢᴇ ᴄᴏᴅᴇs ғᴏʀ ᴛʀᴀɴsʟᴀᴛɪᴏɴ

af, am, ar, az, be, bg, bn, bs, ca, ceb, co, cs, cy, da, de, el, en, eo, es,
et, eu, fa, fi, fr, fy, ga, gd, gl, gu, ha, haw, hi, hmn, hr, ht, hu, hy, id, ig, is, it, iw, ja, jw, ka, kk, km, kn, ko, ku, ky, la, lb, lo, lt, lv, mg, mi, mk, ml, mn, mr, ms, mt, my, ne, nl, no, ny, pa, pl, ps, pt, ro, ru, sd, si, sk, sl, sm, sn, so, sq, sr, st, su, sv, sw, ta, te, tg, th, tl, tr, uk, ur, uz, vi, xh, yi, yo, zh, zh_CN, zh_TW, zu'''


#Add coding folder 👇
# https://t.me/addlist/2UhsQW_cGzkxMzg1
🔥1
Translation Output 👆 Code
1