Spaces:
Sleeping
Sleeping
Juditttttttt
commited on
Commit
•
2f49472
1
Parent(s):
2370a71
Update pages/exercici7.py
Browse files- pages/exercici7.py +1 -0
pages/exercici7.py
CHANGED
@@ -5,6 +5,7 @@ st.title("Benvingut al joc Endevina el número secret.")
|
|
5 |
st.header("Aconsegueix-ho amb el nombre mínim d'intent")
|
6 |
intents = 0
|
7 |
secret = random.randint(1,101)
|
|
|
8 |
jugador = st.slider('Escull un valor', 0, 100)
|
9 |
while jugador != secret:
|
10 |
if not jugador:
|
|
|
5 |
st.header("Aconsegueix-ho amb el nombre mínim d'intent")
|
6 |
intents = 0
|
7 |
secret = random.randint(1,101)
|
8 |
+
st.write(f"Número secret: {secret} (no li diguis a ningú)")
|
9 |
jugador = st.slider('Escull un valor', 0, 100)
|
10 |
while jugador != secret:
|
11 |
if not jugador:
|