import pyqrcode
import png
from pyqrcode import QRCode
# String which represents the QR code
s = “https://techgator.in/”
# Generate QR code
url = pyqrcode.create(s)
# Create and save the svg file naming “techgatorsvg.svg”
url.svg(“techgatorsvg.svg”, scale = 8)
# Create and save the png file naming “techgatorpng.png”
url.png(‘techgatorpng.png’, scale = 6)
print(“Your QRCode is Ready”)