1. A library charges a fine for every book returned late.
For first five days
the fine is 50 paise, for 6 to 10 days fine is one rupee, and above 10 days
fine is five rupees. If you return the book after 30 days your membership
will be cancelled. Write a Python program to accept the number of days
the member is late to return the book and display the fine or the
appropriate message.
2. Two numbers are entered through keyboard, Write a Python program to
find the value of one number raised to the power another.
3. Write a program to accept some string from the keyboard and display its
characters by index-wise (both positive and negative index).
4. Write a Python program to access each character of string in forward and
backward direction by using the while loop and slice operators.