Skip to content

Commit 88b3c22

Browse files
Merge pull request #36 from arjun-ms/develop
Added 2 basic programs
2 parents 09f644f + f51c39e commit 88b3c22

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

email_slicer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
email = input("Enter Your Email: ").strip()
3+
username = email[:email.index("@")]
4+
domain_name = email[email.index("@")+1:]
5+
format_ = (f"Your user name is '{username}' and your domain is '{domain_name}'")
6+
print(format_)

qr.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pyqrcode
2+
from pyqrcode import QRCode
3+
4+
# String which represent the QR code
5+
s = "https://fueler.io/arjun_ms"
6+
7+
# Generate QR code
8+
url = pyqrcode.create(s)
9+
10+
# Create and save the png file naming "myqr.png"
11+
url.svg("myyoutube.svg", scale = 8)

0 commit comments

Comments
 (0)