Create a Gross Salary Calculator using Python with Streamlit
We will be getting started from :
what is Streamlit ?
Streamlit is an open source app framework in Python language. It helps us create web apps for data science and machine learning in a short time. It is compatible with major Python libraries such as scikit-learn, Keras, PyTorch, SymPy(latex), NumPy, pandas, Matplotlib etc.
We will be Creating an web app with the help of Streamlit which can calculate gross salary of Employee
First Import it’s Library
import streamlit as st
After That to print our heading Employee Gross Salary Calculator
We will use
st.header("Employee Gross Salary Calculator")
To take input
we have to use
st.text_input
for text and
st.number_input
for number
st.write
for output or print
Complete Code
#importing required libraries
import streamlit as st
st.write("Employee Gross Salary Calculator")
a = st.text_input("Enter Name of Employee : ")
h= st.text_input("Enter Name of Company : ")
b= st.number_input("Enter Basic salary of Employee : ")
c = st.number_input(" Dearness allowance percentage : ")
d = st.number_input(" House Rent allowance percentage : ")
#project
#python
#streamlit
More in Projects
See all →- Building a Goal Tracker with HTML, CSS, and JavaScript Goal tracking is an essential aspect of personal development and productivity. By visualizing your progress and breaking down tasks into man...
- Mini Project in Engineering Curriculum Hello readers, I am Ajink Gupta, an engineering student from DMCE College. You might have come across the term “mini project” and wondered w...
- Top 10 GitHub Repositories Every Web Developer Should Bookmark As a web developer, keeping up-to-date with the latest trends, tools, and best practices is essential. Fortunately, GitHub hosts a wealth of...
- How to Create a Django App Django is a popular Python web framework that makes it easy to build web applications. In this blog post, we will show you how to create a D...
- Top 10 Cloud Computing Mini Projects Dive In and Start Exploring! Looking to dip your toes into the cloud and boost your skills? This list of 10 mini projects is your launchpad!...
- Building an Pastebin Clone with PHP , MySQL & JS Step 01: Setting Up Environment Install XAMPP or any other PHP MySQL web server. Start the Apache and MySQL services in XAMPP. Step 02: Data...