PFP191_-_PE_-_SP_2024_1487.webp
vast_ocean

PFP191_-_PE_-_SP_2024_1487.webp

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
Chưa có bình luận nào.

Thông tin

Category
PFP191
Thêm bởi
vast_ocean
Ngày thêm
Lượt xem
3,768
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PFP191_-_PE_-_SP_2024_1487.webp
File size
148.3 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom