0% found this document useful (0 votes)
8 views5 pages

Advanced Python Lab 6 Vedant

This document is a lab assignment for an Advanced Python course submitted by Vedant Agarwal. It includes a practical exercise on performing basic operations using Streamlit, showcasing code for creating a simple web app with user inputs and outputs. The code demonstrates the use of titles, headers, text inputs, selection boxes, and sliders in Streamlit.

Uploaded by

vedant.agarwal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

Advanced Python Lab 6 Vedant

This document is a lab assignment for an Advanced Python course submitted by Vedant Agarwal. It includes a practical exercise on performing basic operations using Streamlit, showcasing code for creating a simple web app with user inputs and outputs. The code demonstrates the use of titles, headers, text inputs, selection boxes, and sliders in Streamlit.

Uploaded by

vedant.agarwal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ADVANCED PYTHON

(5BCA-B)

LAB ASSIGNMENT-6

SUBMTTED BY

VEDANT AGARWAL (23215170)

SUBMTTED TO

Prof. Prateek Singhal


School of Sciences
Practical 6: Perform Basic operation of
Streamlit

INSTALL STREAMLIT

CODE
import streamlit as st

[Link]("Streamlit Basics Demo")


[Link]("This is a Header")
[Link]("This is a Subheader")
[Link]("This is a simple text message.")

[Link]("**You can also use Markdown!**")

name = st.text_input("Enter your name:")


age = st.number_input("Enter your age:", min_value=1,
max_value=100, step=1)

if [Link]("Submit"):
[Link](f"Hello {name}, you are {age} years old!")

option = [Link]("Choose a fruit:", ["Apple", "Banana",


"Mango"])
[Link]("You selected:", option)

[Link]("Rate this demo:", 1, 10)


OUTPUT

You might also like