 #From the random library we import the randint function. 

#Generate a random number between 1 and 6

#!!!Input always passes strings !!!



"""
Explanation: Lesson 3: Conditions and Loops
Conditions - Compare with "if", "elif" and "else"

Evaluate expressions which produce TRUE or FALSE as outcome
Based on the outcome of the expression a specific block of code is executed
The expressions could be: equality (==) , inequality (!=), less/greater than (<)(>), less/greater than or equal
   (<=) (>=), membership (in, not in)
Expressions can be combined using "and" and "or" and "and not"
<img src="ifcondition.jpg">

Let us write a small code that mimics a dice by generating a random number between 1 and 6. It then asks you to enter a number between 1 and 6. If what you enter equals the dice value you win or else you loose.
End of explanation
"""


# Enter code here


"""
Explanation: Loops - Repeat with "while" and Iterate with "for"
While loop

A loop statement allows us to execute a statement or group of statements multiple times
While loop is the simplest loop which executes a block of code until and expression is True
A 'break' command can be used to exit any loop prematurely
A 'continue' command can be used to skip ahead to the next iterations without exiting the loop
<img src="whileloop.png">

*Now lets improve the previous function "dice()" such that the user has 5 attempts at entering the number and getting the right dice value. *
Excercise : Can you edit the the previous code so that it stops asking the user to enter a number when the value entered matches the dice value ? Hint: You will need to use the "break" command within the while loop. Also remember that you can use the "return" command to pass values back to the calling function.
End of explanation
"""


