Generate QR Code using python

In this tutorial, we are going to show and explain How to Generate QR Code using python. We have added the video tutorial and the source code of the program.

 

So let us begin with the Generate QR Code using python.

Video Tutorial: Generate QR Code using python. 

 

Installation:

pip install pyqrcode

Source Code:

 

import pyqrcode 
from pyqrcode import QRCode 
  
# String which represent the QR code 
s = "https://www.youtube.com/c/techdecode"
  
# Generate QR code 
url = pyqrcode.create(s) 
  
url.svg("qr.svg", scale = 8)

 

Output:

 

Generate QR Code using python

 

Also Read: 5 Best Coursera Data Science Courses Online 2022