From 0c8c744f98be356fb46da7c6d3f6e3c94ab0de32 Mon Sep 17 00:00:00 2001 From: krithikha24 <148692688+krithikha24@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:08:45 +0530 Subject: [PATCH] QR Code generator code - python --- qrcode_generator.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 qrcode_generator.py diff --git a/qrcode_generator.py b/qrcode_generator.py new file mode 100644 index 00000000..ce552bf7 --- /dev/null +++ b/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