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
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
---------------------------------

What is Python?

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
---------------------------------
It is used for:

1.web development (server-side),
2. software development,
3.mathematics,

4.system scripting.
---------------------------------
What can Python do?



1.Python can be used on a server to create web applications.
2.It can be used alongside software to create workflows.
3.It can connect to database systems. It can also read and modify files.
4.It can be used to handle big data and perform complex mathematics.
5.Python can be used for rapid prototyping, or for production-ready software development.

---------------------------------
Why Python?


1.Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, Android).
2.Python has a simple syntax similar to the English language.
3.Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
4.Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
5.Python can be treated in a procedural way, an object-oriented way or a functional way.

------------------------------------------------------------------


Join for more :- @Python_Codes_Pro
👍41
#python

Lets Start python from Basic !
download vs code if you have
PC :-
Click Here to Download

Watch Setup python  in vs code :-

Click Here To Watch Tutorial
:
Then Download latest  Python  that support ur  pc:-


Click here to Download Python for PC

  When ur download is completed setup path of python in Enviornment Variable


-----------;---------------------------_-------
Android User :
Check out for "Pydroid 3 - IDE for Python 3"


Click Here To Download App To run Code



Join New Group for doubt and discussion regarding any kind of help
:-



Support :- @Python_Codes_Pro

Support group : @python_group_pro
3👍1
Writing Our First Python Program
Today we will be writing our first program in Python Language. I know you have been waiting for a long to do this.

Let's get to business and start writing our first python program. Follow the below steps:

Open VS CODE / PYDROID OR ANY IDE and create a new file in it.
Keep in mind the file name should not match any module name.
After creating a new file, type:
print("Hello World")
Now run your program.
You will get the output as
"Hello World" in your terminal.
So, this is our first python program, and in this program, we just used the print function. In this function, whatever we pass in parenthesis () in a double quote or single quote gets printed (as it is) in the terminal.


Eg : print('Hello')

       print("Hello")
print("""Hello""")
      
Correct Method

    print("Hello)
    print(Hello")
    print('Hello)
    print(Hello')

* Wrong method 

Watch :- https://clipchamp.com/watch/NHACKV5pkfE




Task : print "hello world" in support group
👍8
Thanks all for

100 on @Python_group_pro
1000 on @Python_codes_pro

Stay connected with us
https://t.me/addlist/2UhsQW_cGzkxMzg1
👍1