PYTHON PROJECTS
Project 1 – Portfolio using Python
Import streamlit as st
# -------------------------------------------------
# PAGE CONFIG
# -------------------------------------------------
St.set_page_config(
Page_title=”Rohit Sharma | Professional Portfolio”,
Page_icon=” ”,
Layout=”wide”,
Initial_sidebar_state=”expanded”,
# -------------------------------------------------
# CUSTOM CSS
# -------------------------------------------------
[Link](“””
<style>
@import
url(‘[Link]
00;700;800&display=swap’);
Html, body, [class*=”css”]{
Font-family:’Poppins’, sans-serif;
}
/* Main Background */
.stApp{
Background:linear-gradient(135deg,#eef4ff,#f8fbff,#ffffff);
}
/* Sidebar */
Section[data-testid=”stSidebar”]{
Background:linear-gradient(180deg,#0f172a,#1e293b);
Color:white;
}
Section[data-testid=”stSidebar”] *{
Color:white !important;
}
/* Remove Streamlit Menu */
#MainMenu{visibility:hidden;}
Footer{visibility:hidden;}
Header{visibility:hidden;}
/* Hero Section */
.hero{
Background:linear-gradient(135deg,#0f172a,#1e40af,#2563eb);
Padding:45px;
Border-radius:28px;
Color:white;
Box-shadow:0 15px 45px rgba(0,0,0,0.18);
}
.hero h1{
Font-size:55px;
Font-weight:800;
Margin-bottom:0;
}
.hero h3{
Font-size:26px;
Font-weight:400;
Color:#dbeafe;
Margin-top:8px;
}
.hero p{
Font-size:18px;
Line-height:1.8;
Margin-top:20px;
}
/* Cards */
.card{
Background:white;
Padding:30px;
Border-radius:22px;
Box-shadow:0px 10px 30px rgba(0,0,0,.08);
Margin-top:25px;
Border:1px solid #eef2ff;
Transition:.3s;
.card:hover{
Transform:translateY(-5px);
Box-shadow:0px 20px 40px rgba(0,0,0,.12);
}
/* Titles */
.title{
Font-size:32px;
Font-weight:700;
Color:#0f172a;
Margin-bottom:20px;
}
/* Timeline */
.timeline{
Border-left:4px solid #2563eb;
Padding-left:20px;
Margin-left:8px;
}
.timeline h4{
Margin-bottom:5px;
Color:#1d4ed8;
}
.timeline p{
Color:#555;
Line-height:1.8;
}
/* Skill Box */
.skill-box{
Background:#f8fafc;
Padding:18px;
Border-radius:15px;
Margin-bottom:15px;
Border:1px solid #e2e8f0;
}
/* Metric Cards */
.metric{
Background:linear-gradient(135deg,#2563eb,#1d4ed8);
Padding:22px;
Border-radius:20px;
Text-align:center;
Color:white;
Box-shadow:0px 8px 20px rgba(37,99,235,.3);
}
.metric h2{
Margin:0;
Font-size:38px;
.metric p{
Margin:0;
Font-size:16px;
/* Contact */
.contact{
Background:#0f172a;
Padding:22px;
Border-radius:18px;
Color:white;
Line-height:2;
}
/* Buttons */
.stButton>button{
Background:linear-gradient(135deg,#2563eb,#1d4ed8);
Color:white;
Border:none;
Padding:12px 35px;
Border-radius:12px;
Font-size:17px;
Font-weight:600;
Transition:.3s;
.stButton>button:hover{
Background:linear-gradient(135deg,#1d4ed8,#2563eb);
Transform:scale(1.03);
}
/* Divider */
Hr{
Margin-top:40px;
Margin-bottom:40px;
/* Footer */
.footer{
Text-align:center;
Color:#64748b;
Font-size:15px;
Padding-top:20px;
}
</style>
“””, unsafe_allow_html=True)
# -------------------------------------------------
# SIDEBAR
# -------------------------------------------------
With [Link]:
[Link]([Link]
width=180)
[Link](“## Rohit Sharma”)
[Link](“### Data Analyst”)
[Link]()
[Link](“### Profile”)
[Link](“**Age:** 29”)
[Link](“**Profession:** Data Analyst”)
[Link](“**Education:**”)
[Link](“• [Link]”)
[Link](“• MBA”)
[Link]()
[Link](“### Contact”)
[Link](“ [Link]@[Link]”)
[Link](“ +91 9876543210”)
[Link](“ Bengaluru, India”)
[Link]()
[Link](“### Connect”)
[Link](“LinkedIn”)
[Link](“GitHub”)
[Link](“Download Resume”)
# -------------------------------------------------
# HERO
# -------------------------------------------------
[Link](“””
<div class=”hero”>
<h1>Rohit Sharma</h1>
<h3>Data Analyst | AI & Machine Learning Specialist</h3>
<p>
Transforming raw data into meaningful business intelligence through
advanced analytics,
Machine learning, and strategic thinking.
With 9 years of experience across Oracle and Deloitte,
I specialize in solving complex business problems using data-driven
solutions,
Lead cross-functional teams, and deliver measurable business impact.
</p>
</div>
“””, unsafe_allow_html=True)
# -------------------------------------------------
# METRICS
# -------------------------------------------------
[Link](“”)
C1,c2,c3,c4=[Link](4)
With c1:
[Link](“””
<div class=”metric”>
<h2>9+</h2>
<p>Years Experience</p>
</div>
“””,unsafe_allow_html=True)
With c2:
[Link](“””
<div class=”metric”>
<h2>2</h2>
<p>Global Companies</p>
</div>
“””,unsafe_allow_html=True)
With c3:
[Link](“””
<div class=”metric”>
<h2>6+</h2>
<p>Core Skills</p>
</div>
“””,unsafe_allow_html=True)
With c4:
[Link](“””
<div class=”metric”>
<h2>100%</h2>
<p>Professionalism</p>
</div>
“””,unsafe_allow_html=True)
# -------------------------------------------------
# ABOUT
# -------------------------------------------------
[Link](“””
<div class=”card”>
<div class=”title”>
About Me
</div>
I am a passionate and highly motivated <b>Data Analyst</b> with over
<b>9 years of professional experience</b> in analytics,
AI/ML solutions, data curation and business intelligence.
Throughout my career I have helped organizations make informed,
Data-driven decisions while improving operational efficiency,
Optimizing business performance and delivering actionable insights.
I am recognized for my leadership, communication skills,
Analytical thinking and commitment towards excellence.
</div>
“””,unsafe_allow_html=True)
# -------------------------------------------------
# EDUCATION + EXPERIENCE
# -------------------------------------------------
Col1,col2=[Link]([1,2])
With col1:
[Link](“””
<div class=”card”>
<div class=”title”>
Education
</div>
<b>Bachelor of Technology</b><br>
([Link])
<br><br>
<b>Master of Business Administration</b><br>
(MBA)
</div>
“””,unsafe_allow_html=True)
With col2:
[Link](“””
<div class=”card”>
<div class=”title”>
Professional Experience
</div>
<div class=”timeline”>
<h4>Oracle</h4>
<b>Data Analyst</b>
<p>
5 Years of experience in Data Analytics,
Business Intelligence,
Reporting,
Machine Learning,
Data Processing and Strategic Analytics.
</p>
<h4>Deloitte</h4>
<b>Senior Data Analyst</b>
<p>
4 Years of experience leading analytics initiatives,
Stakeholder communication,
AI implementation,
Team collaboration,
Business reporting and data-driven decision making.
</p>
</div>
</div>
“””,unsafe_allow_html=True)
# -------------------------------------------------
# SKILLS
# -------------------------------------------------
[Link](“””
<div class=”card”>
<div class=”title”>
Core Competencies
</div>
</div>
“””,unsafe_allow_html=True)
Skills={
“AI & Machine Learning”:95,
“Data Analytics”:98,
“Data Curation”:92,
“Communication Skills”:95,
“Leadership”:93,
“Punctuality”:99
}
For skill,val in [Link]():
[Link](f”#### {skill}”)
[Link](val)
# -------------------------------------------------
# STRENGTHS
# -------------------------------------------------
Left,right=[Link](2)
With left:
[Link](“””
<div class=”card”>
<div class=”title”>
Professional Strengths
</div>
Strategic Thinking
Analytical Problem Solving
Team Leadership
Critical Decision Making
Business Intelligence
Project Ownership
</div>
“””,unsafe_allow_html=True)
With right:
[Link](“””
<div class=”card”>
<div class=”title”>
Professional Summary
</div>
A seasoned Data Analyst with a strong background
In analytics, AI/ML, data engineering,
Business intelligence and enterprise reporting.
Committed to delivering measurable business value
Through innovation, leadership,
Continuous learning and high-quality execution.
</div>
“””,unsafe_allow_html=True)
# -------------------------------------------------
# CONTACT
# -------------------------------------------------
[Link](“””
<div class=”contact”>
<h2> Let’s Connect</h2>
<b>Email:</b> [Link]@[Link]
<b>Phone:</b> +91 9876543210
<b>Location:</b> Bengaluru, India
<b>Profession:</b> Data Analyst
</div>
“””,unsafe_allow_html=True)
[Link](“”)
[Link](“Contact Me”)
[Link](“<hr>”,unsafe_allow_html=True)
[Link](“””
<div class=”footer”>
© 2026 Rohit Sharma • Professional Portfolio
Designed with Streamlit
</div>
“””,unsafe_allow_html=True)
Project 2 – Password Strength Checker
# Password Strength Checker
Password = input(“Enter a password: “)
Length = len(password)
Has_upper = False
Has_lower = False
Has_digit = False
For ch in password:
If ‘A’ <= ch <= ‘Z’:
Has_upper = True
Elif ‘a’ <= ch <= ‘z’:
Has_lower = True
Elif ‘0’ <= ch <= ‘9’:
Has_digit = True
Print(“\nPassword Analysis”)
Print(“-“ * 20)
If length >= 8:
Print(“✓ Length is good”)
Else:
Print(“✗ Password should be at least 8 characters long”)
If has_upper:
Print(“✓ Contains uppercase letter”)
Else:
Print(“✗ Missing uppercase letter”)
If has_lower:
Print(“✓ Contains lowercase letter”)
Else:
Print(“✗ Missing lowercase letter”)
If has_digit:
Print(“✓ Contains digit”)
Else:
Print(“✗ Missing digit”)
Score = 0
If length >= 8:
Score += 1
If has_upper:
Score += 1
If has_lower:
Score += 1
If has_digit:
Score += 1
Print(“\nPassword Strength:”)
If score == 4:
Print(“Strong Password”)
Elif score == 3:
Print(“Medium Password”)
Else:
Print(“Weak Password”)
Project 3 – Bank Management System
Accounts = {}
# ---------------- CREATE ACCOUNT ---------------- #
Def create_account():
Acc_no = input(“Enter Account Number: “)
If acc_no in accounts:
Print(“Account already exists!”)
Return
Name = input(“Enter Name: “)
Pin = input(“Set 4-Digit PIN: “)
Balance = float(input(“Enter Initial Deposit: “))
Accounts[acc_no] = {
“name”: name,
“pin”: pin,
“balance”: balance,
“history”: [f”Account Created with ₹{balance}”]
}
Print(“Account Created Successfully!”)
# ---------------- AUTHENTICATION ---------------- #
Def authenticate(acc_no):
If acc_no not in accounts:
Print(“Account Not Found!”)
Return False
Pin = input(“Enter PIN: “)
If pin == accounts[acc_no][“pin”]:
Return True
Print(“Incorrect PIN!”)
Return False
# ---------------- DEPOSIT ---------------- #
Def deposit():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Amount = float(input(“Enter Amount to Deposit: “))
Accounts[acc_no][“balance”] += amount
Accounts[acc_no][“history”].append(
F”Deposited ₹{amount}”
Print(“Deposit Successful!”)
# ---------------- WITHDRAW ---------------- #
Def withdraw():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Amount = float(input(“Enter Amount to Withdraw: “))
If amount > accounts[acc_no][“balance”]:
Print(“Insufficient Balance!”)
Else:
Accounts[acc_no][“balance”] -= amount
Accounts[acc_no][“history”].append(
F”Withdrawn ₹{amount}”
)
Print(“Withdrawal Successful!”)
# ---------------- CHECK BALANCE ---------------- #
Def check_balance():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Print(“Name :”, accounts[acc_no][“name”])
Print(“Balance :”, accounts[acc_no][“balance”])
# ---------------- TRANSFER MONEY ---------------- #
Def transfer_money():
Sender = input(“Enter Sender Account Number: “)
If not authenticate(sender):
Return
Receiver = input(“Enter Receiver Account Number: “)
If receiver not in accounts:
Print(“Receiver Account Not Found!”)
Return
Amount = float(input(“Enter Amount to Transfer: “))
If amount > accounts[sender][“balance”]:
Print(“Insufficient Balance!”)
Else:
Accounts[sender][“balance”] -= amount
Accounts[receiver][“balance”] += amount
Accounts[sender][“history”].append(
F”Transferred ₹{amount} to {receiver}”
)
Accounts[receiver][“history”].append(
F”Received ₹{amount} from {sender}”
)
Print(“Transfer Successful!”)
# ---------------- TRANSACTION HISTORY ---------------- #
Def transaction_history():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Print(“\n----- TRANSACTION HISTORY -----“)
For transaction in accounts[acc_no][“history”]:
Print(transaction)
# ---------------- ACCOUNT DELETION ---------------- #
Def delete_account():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Confirm = input(“Type YES to delete account: “)
If [Link]() == “YES”:
Del accounts[acc_no]
Print(“Account Deleted Successfully!”)
Else:
Print(“Deletion Cancelled!”)
# ---------------- INTEREST CALCULATION ---------------- #
Def add_interest():
Acc_no = input(“Enter Account Number: “)
If not authenticate(acc_no):
Return
Rate = float(input(“Enter Interest Rate (%): “))
Interest = accounts[acc_no][“balance”] * rate / 100
Accounts[acc_no][“balance”] += interest
Accounts[acc_no][“history”].append(
F”Interest Added ₹{interest}”
)
Print(“Interest Added Successfully!”)
Print(“Interest Amount :”, interest)
# ---------------- DISPLAY ALL ACCOUNTS ---------------- #
Def display_all_accounts():
If not accounts:
Print(“No Accounts Available!”)
Return
Print(“\n----- ACCOUNT DETAILS -----“)
For acc_no, details in [Link]():
Print(“Account No :”, acc_no)
Print(“Name :”, details[“name”])
Print(“Balance :”, details[“balance”])
Print(“---------------------------“)
# ---------------- MAIN MENU ---------------- #
While True:
Print(“\n===== BANK MANAGEMENT SYSTEM =====”)
Print(“1. Create Account”)
Print(“2. Deposit”)
Print(“3. Withdraw”)
Print(“4. Check Balance”)
Print(“5. Transfer Money”)
Print(“6. Transaction History”)
Print(“7. Add Interest”)
Print(“8. Delete Account”)
Print(“9. Display All Accounts”)
Print(“10. Exit”)
Choice = input(“Enter Choice : “)
If choice == “1”:
Create_account()
Elif choice == “2”:
Deposit()
Elif choice == “3”:
Withdraw()
Elif choice == “4”:
Check_balance()
Elif choice == “5”:
Transfer_money()
Elif choice == “6”:
Transaction_history()
Elif choice == “7”:
Add_interest()
Elif choice == “8”:
Delete_account()
Elif choice == “9”:
Display_all_accounts()
Elif choice == “10”:
Print(“Thank You!”)
Break
Else:
Print(“Invalid Choice!”)