Activity 12.11.1.
Write code that tests guess to see if it is equal to answer or too high or too low. If it is too high as in the example below, it should print out
Your guess is too high.
Your guess is too high.
You can go out if you donβt have any homework and have cleaned and otherwise prints You can not go out.
message has the word ringing in it or not. It should print out Answer the phone! if ringing is in message, and I don't hear anything. if not.
favFood value is pizza or wings. If it is, it should print out Your fav is junk food. If not, it should print Your fav is not junk.
50. If you are going at least 75 and less than 85, the fine is 100. Over that the fine is 200. It should not print anything if you are not speeding.
7:00am and if not get up at 10:00am.
Can text now or Can't text now. You can text if you are not driving and not eating.
Starts with a vowel (a, e, i, o, u) or Starts with a consonant.
A. For a score between 80 and 90, it should print B. For a score between 70 and 80, it should print C. For a score between 60 and 70, it should print D. For all other scores, it should print E.
get_mid(str) method in the StringWorker class to return the middle character if the string has an odd number of characters and the middle two characters if the string has an even number of characters. For example, get_mid("way") should return "a" and get_mid("away") should return "wa".