-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQRcode.py
More file actions
39 lines (33 loc) · 835 Bytes
/
QRcode.py
File metadata and controls
39 lines (33 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import qrcode
def data():
name=input("Enter Name")
age=int(input("Enter Age"))
contact_num=int(input("Enter Contact Number"))
Addr=input("Enter Address")
li=(f"{name}'s age is {age}.")
li=li+(f"His Contact Number is {contact_num} and his address is {Addr}")
return li
for i in range(1,int(input("Number of people"))+1):
img=qrcode.make(data())
img.save(f"data{i}.jpg")
#####################BASIC_PRACTICE_CODES_AND_TRIES#####################
'''
#1st
import qrcode
img = qrcode.make((input("Amount of Data to be Filled")))
img.save("data.jpg")
'''
'''
#2nd
import qrcode
def data():
name=input("Enter Your Name")
return name
n=int(input("Amount of Data to be Filled"))
li=[]
for i in range(n):
a=data()
li.append(a)
img = qrcode.make(''.join(li))
img.save("data1.jpg")
'''