COOL PYTHON MINI PROJECTS

making QR code using python in just within a minute !!!

import qrcode
qr=qrcode.QRCode(
version=1,
box_size=10,
border=5
)

data=”hello i am Aditi”
qr.add_data(data)
qr.make(fit=True)
img=qr.make_image(fill=”black”,back_color=”white”)
img.save(“1.png”)

After executing the above code you will get 1.png file which will our desired QR code.you can scan this QR code using any qr scanner which is available on any appstore or Google playstore.

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free