scrimba
Python 101 in Bangla
31. While Loops - Exercise
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

31. While Loops - Exercise
AboutCommentsNotes
31. While Loops - Exercise
Expand for more info
index.py
run
preview
console
"""
Exercise 1 (Guessing game):
# Ask user to guess a number (take input)
# print an appropriate message when:
1. the user wins (user input matches with the actual number)
2. in case of a failed attempt, ask the user to try again (S/he can try maximum 3 times),
3. if user can't guess it in the third attempt, print a message that the user has lost the game.

Exercise 2: Ask to guess a number between 1-30, tell user if guess is too high/low ,and let them have 10 guesses.

"""

Console
/index.html
-9:51