#pip install qrcode

import qrcode
from PIL import Image

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

data=input("enter data to display on QR code:\n")
qr.add_data(data)
qr.make(fit=True)
img=qr.make_image(fill="black",back_color="white")
img.save("gen.png")
img = Image.open('gen.png')
img.show()
