def allowed_dating_age(my_age):
    girls_age = my_age/2 + 7
    return girls_age

for n in range (15, 61):
    age_limit = allowed_dating_age(n)
    print(n, "can date", age_limit, "or older")

15 can date 14.5 or older
16 can date 15.0 or older
17 can date 15.5 or older
18 can date 16.0 or older
19 can date 16.5 or older
20 can date 17.0 or older
21 can date 17.5 or older
22 can date 18.0 or older
23 can date 18.5 or older
24 can date 19.0 or older
25 can date 19.5 or older
26 can date 20.0 or older
27 can date 20.5 or older
28 can date 21.0 or older
29 can date 21.5 or older
30 can date 22.0 or older
31 can date 22.5 or older
32 can date 23.0 or older
33 can date 23.5 or older
34 can date 24.0 or older
35 can date 24.5 or older
36 can date 25.0 or older
37 can date 25.5 or older
38 can date 26.0 or older
39 can date 26.5 or older
40 can date 27.0 or older
41 can date 27.5 or older
42 can date 28.0 or older
43 can date 28.5 or older
44 can date 29.0 or older
45 can date 29.5 or older
46 can date 30.0 or older
47 can date 30.5 or older
48 can date 31.0 or older
49 can date 31.5 or older
50 can date 32.0 or older
51 can date 32.5 or older
52 can date 33.0 or older
53 can date 33.5 or older
54 can date 34.0 or older
55 can date 34.5 or older
56 can date 35.0 or older
57 can date 35.5 or older
58 can date 36.0 or older
59 can date 36.5 or older
60 can date 37.0 or older

Process finished with exit code 0