AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
Channel created
Channel photo updated
Friends share our channel to friends those who are willing to learn python programming👍
Choose the one that you want

New video topic Answer the poll👇👇
Anonymous Poll
72%
Any shortest path algorithm
28%
Dijkstra shortest path algorithm
Import networkx as nx
G=nx.Graph()
e=[('a','b',1),('b','c',2),('a','c',3),('c','d',4),('d','c',2),('b','e',1)]

G.add_weighted_edges_from(e)
Print (nx.dijkstra_path(G,'a','e'))

You can get the code in 24 hours after posting the video

Keep support & share our channel

Thanks for watching!
Dear subscribers,Check the poll for next video. Poll is available on my community tab

Keep share & support
Source code for vigenènere cipher algorithm in python
from tkinter import *
import random, string


root = Tk()
root.geometry("400x280")
root.title("Password Generator")

title = StringVar()
label = Label(root, textvariable=title).pack()
title.set("The strength of our password:")



def selection():
selection = choice.get()

choice = IntVar()
R1 = Radiobutton(root, text="POOR", variable=choice, value=1, command=selection).pack(anchor=CENTER)
R2 = Radiobutton(root, text="AVERAGE", variable=choice, value=2, command=selection).pack(anchor=CENTER)
R3 = Radiobutton(root, text="ADVANCED", variable=choice, value=3, command=selection).pack(anchor=CENTER)
labelchoice = Label(root)
labelchoice.pack()


lenlabel = StringVar()
lenlabel.set("Password length:")
lentitle = Label(root, textvariable=lenlabel).pack()

#
val = IntVar()
spinlenght = Spinbox(root, from_=8, to_=24, textvariable=val, width=13).pack()

# passprint


def callback():
lsum.config(text=passgen())


# clickable button
passgenButton = Button(root, text="Generate Password", bd=5, height=2, command=callback, pady=3)
passgenButton.pack()
password = str(callback)

# password result message
lsum = Label(root, text="")
lsum.pack(side=BOTTOM)

# function
poor= string.ascii_uppercase + string.ascii_lowercase
average= string.ascii_uppercase + string.ascii_lowercase + string.digits
symbols = """`~!@#$%^&*()_-+={}[]\|:;"'<>,.?/"""
advance = poor+ average + symbols


def passgen():
if choice.get() == 1:
return "".join(random.sample(poor, val.get()))
elif choice.get() == 2:
return "".join(random.sample(average, val.get()))
elif choice.get() == 3:
return "".join(random.sample(advance, val.get()))


root.mainloop()
Code for tkinter password generator
import requests
from bs4 import BeautifulSoup

Url="https://www.worldometers.info/country/india"
req=requests.get(Url)
bsobj=BeautifulSoup(req.text,'html.parser')

data=bsobj.find_all("div",class_="maincounter-number")


print("totalcases", data[0].text.strip())
print("total deaths", data[1].text.strip())
print("total recoverd", data[2].text.strip())
Code for covid 19 webscraping [ Please share our channel & subscribe ]👍
‼️‼️ Get ready guys [ Next video is about top 5 free books to learn python ] keep support & share our channel ⚠️
Get ready guys [ Learn how to create a chess multiplayer game using python ] Subscribe share & support🙂✌️