Code :- 

# How to create a qr code using python.
#pip install qrcode.
import qrcode
qr = qrcode.make(“https://www.youtube.com/c/TECHONESPOT”)
qr.save(“techoespot.jpg”)

Output :-