From 102ce447b2e602436024dd40f0a51f991da4c337 Mon Sep 17 00:00:00 2001 From: krithikha24 <148692688+krithikha24@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:10:07 +0530 Subject: [PATCH] QR Code generator code - python --- Python Projects/qrcode_generator.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Python Projects/qrcode_generator.py diff --git a/Python Projects/qrcode_generator.py b/Python Projects/qrcode_generator.py new file mode 100644 index 0000000..ce552bf --- /dev/null +++ b/Python Projects/qrcode_generator.py @@ -0,0 +1,11 @@ +import pyqrcode +from pyqrcode import QRCode + +# String which represent the QR code +s = "https://www.youtube.com" + +# Generate QR code +url = pyqrcode.create(s) + +# Create and save the png file naming "myqr. +url.svg("qrcode.svg",scale=8) \ No newline at end of file