We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5761e79 + ae8681c commit f137e80Copy full SHA for f137e80
QR_code_generator/qrcode.py
@@ -1,17 +1,9 @@
1
-import pyqrcode
2
-import png
+import pyqrcode, png
3
from pyqrcode import QRCode
4
5
-# Text which is to be converted to QR code
6
-print("Enter text to convert")
7
-s = input(": ")
8
-# Name of QR code png file
9
-print("Enter image name to save")
10
-n = input(": ")
11
-# Adding extension as .pnf
12
-d = n + ".png"
13
-# Creating QR code
14
-url = pyqrcode.create(s)
15
-# Saving QR code as a png file
+# Creating QR code after given text "input"
+url = pyqrcode.create(input("Enter text to convert: "))
+# Saving QR code as a png file
16
url.show()
17
-url.png(d, scale=6)
+# Name of QR code png file "input"
+url.png(input("Enter image name to save: ") + ".png", scale=6)
0 commit comments