CoolFace
Apppublic

kalyanpavan/String_Operations

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
SO.py19 linesDownload Raw Back to root
1import streamlit as st2 3# Set the title of the app4st.title("String Operations")5 6# Input fields for first name and last name7first_name = st.text_input("Enter your first name")8last_name = st.text_input("Enter your last name")9 10def display_fullname(first_name,last_name):11    full_name = f"{first_name} {last_name}"12    st.write(f"Full Name: {full_name}")13 14if st.button("submit"):15    if first_name and last_name:16        display_fullname(first_name,last_name)17    else:18        st.write("Please enter both first name and last name")19