Question 1 (3 points)
Write a Python program that performs the required tasks below. Input is entered by the user.
1. Calculate the sum of the series S=2-23+25...+22-1. (1point)
The output should be:
Your selection (1 -> 3):
1
Enter the n of terms: 5
OUTPUT
410
2. Print a triangle ('A'->'Z', if it exceeds character 'Z', it returns to character 'A'). (1 point)
The output should be:
Your selection (1 -> 3):
2
Your selection (1 -> 3):
Enter the number of rows: 8 OUTPUT
+ 95%
Zoom
Close