Answer:
fav_number=26
guess=0
while 0==0:
try:
guess=int(input('Enter your guess: '))
except:
print ('You have entered an invalid value.')
else:
if guess == fav_number:
break
elif guess>fav_number:
print ('Try a smaller number.')
elif guess<fav_number:
print ('Try a larger number')
Explanation:
define a variable fav_number and set it to number. write an infinite while loop to read input from user. In try block get input from user, if user enters invalid input code in except block will be executed. For valid input
- check if its greater than favorite number, if yes print try smaller number.
- check if its smaller than favorite number, if yes print try larger number.
- check if its equal to favorite number, break loop and exit
The answer to your question is True.
Everyone holds some type of stereotypical attitudes, whether it's judging someone based on what they wear or how they look everyone has them.
Hello! Self-esteem is important in self-representation, because the way you feel yourself can affect how you represent yourself as well. For example, if you have low self-esteem, you may present yourself as sad and shameful. However, if you have high self-esteem, you present confidence and happiness to other people.