Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lesson 2: Interactive Coding with Streamlit 📘

Welcome to Lesson 2 of BSMP 2024 Streamlit! 🚀

In this lesson, we'll learn how to make our Python programs interactive using Streamlit. We'll explore if statements, buttons, dropdowns, and loops to create engaging web apps.

What's Inside? 🧐

  • Interactive Widgets: Discover how to use Streamlit widgets like buttons and dropdowns.
  • Control Flow: Get to know if, else, and elif statements to make decisions in your code.
  • Loops: Learn about for and while loops to repeat actions in your app.

Activities 🏫

  • Guessing Game: Build a game where users can guess a number.
  • Grade Calculator: Create an app to calculate grades based on test scores.

Check Out Cool Apps 🎮

Run the App 🖥️

Remember, to run your Streamlit app, just type streamlit run app.py in your terminal, and your app will spring to life!

Let's jump into the code now!

Keep Learning and Building 🛠️

Use the knowledge from this lesson to create your own interactive apps. Don't forget to check out the cool examples for inspiration!

Additional Resources 📚

For more information on Python if statements and for loops, please go through these tutorials on vscodeedu - intro to python using your BAM emails:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages