1 Task

There is a folk rule that says you can date people as young as half your age plus seven years old. This suggests they can date you if they are as old as twice your age minus thirteen. See wikipedia for more.

Write a program called dating.py. When run, it should

  1. ask the user for their age.
  2. print the range of ages of people they can date.

Please match our prompts, etc, exactly. Your program should work for any integer age ≥ 14 that we provide. It should always answer with integer ages.

2 Example Runs

2.1 Example 1

How old are you? 17
You can date people between 15 and 21 years old

2.2 Example 2

How old are you? 70
You can date people between 42 and 127 years old