Skip to content
Sign upLog in
← Back to Community

how to create QR code on repl?

Profile icon
HarshitKumar2

i a new here , i want to know how to create QR code on repl?

here is my code...

Answered by FishballNooodle [earned 5 cycles]
View Answer
Voters
Profile icon
YasithaUdayang1
Profile icon
Duvangamer3845
Profile icon
HarshitKumar2
Comments
hotnewtop
Profile icon
FishballNooodle
import qrcode qr = qrcode.QRCode( version=1, box_size=10, ) qr.add_data('Some data') qr.make(fit=True) img = qr.make_image(fill_color="black", back_color="white")
Profile icon
HarshitKumar2

@FishballNooodle
thanks you

Profile icon
FishballNooodle

@HarshitKumar2

Thanks for getting me to 100

Profile icon
HarshitKumar2

@FishballNooodle
I have one more question, that is how could I strore radmonly generate Number in QR Code? I tried earlier but getting error..

Profile icon
aaravakre

import qrcode
qr = qrcode.QRCode(
version=1,
box_size=10,
)
qr.add_data('Some data')
qr.make(fit=True)

img = qr.make_image(fill_color="black", back_color="white")

Profile icon
YasithaUdayang1

YASITHA