Skip to content

Instantly share code, notes, and snippets.

@sahasourav17
Last active August 12, 2021 04:19
Show Gist options
  • Save sahasourav17/3f37c20c9501ea943569d6d2f6c937e1 to your computer and use it in GitHub Desktop.
Save sahasourav17/3f37c20c9501ea943569d6d2f6c937e1 to your computer and use it in GitHub Desktop.
This code is for generating QR code.It will take text or URL as input and generate QR code as output
import pyqrcode
def qrcode():
q = pyqrcode.create(input())
q.png('gen_qrcode.png',scale=7)
print('qrcode generated')
if __name__=='__main__':
qrcode()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment