diff --git a/Python_version/app.py b/Python_version/app.py new file mode 100644 index 0000000..b1d11ea --- /dev/null +++ b/Python_version/app.py @@ -0,0 +1,16 @@ +import pyqrcode +import png +from pyqrcode import QRCode + + +# String which represents the QR code +s = input("Enter the string to be encoded: ") + +# Generate QR code +url = pyqrcode.create(s) + +# Create and save the svg file naming "myqr.svg" +url.svg("myqr.svg", scale = 8) + +# Create and save the png file naming "myqr.png" +url.png('myqr.png', scale = 6) \ No newline at end of file