Skip to content
View Kishore29012007's full-sized avatar

Block or report Kishore29012007

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Kishore29012007/README.md

import streamlit as st import random st.title("Number Guessing Game") st.write("Guess a number between 1 and 10") target_number = random.randint(1, 10) guess = st.number_input("Enter your guess:", min_value=1, max_value=10, step=1) if 'target_number' not in st.session_state: st.session_state.target_number = target_number if st.button("Submit Guess"): if guess == st.session_state.target_number: st.success(f"Congratulations! You guessed it right. The number was {st.session_state.target_number}.") st.session_state.target_number = random.randint(1, 10) st.write("New number generated. Try guessing again!") else: st.warning("Oops! Wrong guess. Try again.")

Popular repositories Loading

  1. ErrorHunter ErrorHunter Public

    Forked from Mathi27/ErrorHunter

    Python 1

  2. SMARTWORK SMARTWORK Public

    Python

  3. Kishore29012007 Kishore29012007 Public

    Config files for my GitHub profile.

  4. lion- lion- Public

  5. lion lion Public

  6. student-portal-app student-portal-app Public

    A web-based student portal application for managing student profiles, courses, and academic information.