We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12489f commit 2e71a3eCopy full SHA for 2e71a3e
Python Projects/QRcode.py
@@ -0,0 +1,9 @@
1
+import qrcode
2
+
3
+data = input('Enter the text or URL: ').strip()
4
+filename = input('Enter the filename: ').strip()
5
+qr = qrcode.QRCode(box_size=10, border=4)
6
+qr.add_data(data)
7
+image = qr.make_image(fill_color='black', back_color='white')
8
+image.save(filename)
9
+print(f'QR code saved as {filename}')
0 commit comments