#python #coding #programming # In a terminal: pip install qrcode[pil] import qrcode url = input("Enter the URL: ").strip() file_path = "qrcode.png" qr = qrcode.QRCode() qr.add_data(url) img = qr.make_image() img.save(file_path) print("QR Code was generated!")
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.