Use python3

ip:-

python3 attendance.py 3


output:-

Q1. The number of ways to attend classes over N days and graduate is -

8

Q2. The probability that you will miss your graduation ceremony.

0.0


Try with different value of n