Final Result
code
You must install QR code library By typing "pip install qrcode"on the command prompt after install python app and vscode by default you run and debugon vscode
# Importing library
import qrcode
# Data to encode
data = "https://arsani-tech.netlify.app/"
# Creating an instance of QRCode class
qr = qrcode.QRCode(version = 1,
box_size = 10,
border = 5)
# Adding data to the instance 'qr'
qr.add_data(data)
qr.make(fit = True)
img = qr.make_image(fill_color = 'red',
back_color = 'white')
img.save('MyQRCode2.png')
.© Copyright Arsani-Tech. All rights reserved
download Code