PFP191_-_PE_-_SU_2024_2161.webp
Rukia123

PFP191_-_PE_-_SU_2024_2161.webp

  • Media owner Rukia123
  • Ngày thêm
Write a Python program that performs the required tasks below. Input is entered by the user.
1. Find the sum of the series S=1-22+32...+n². (1 point)
The output should be:
Your selection (1 -> 3):
1
Enter the number of terms: 5
OUTPUT
15
2. Print a empty inverted right-angle triangle with numbers. (1 point)
The output should be:
Your selection (1 -> 3):
2
Enter the number of rows: 5
OUTPUT
1 2 3 4 5
1
1 3
12
1
3. count repeated characters in a string and represent it as a dictionary. (1 point)
+ 100%
4
Zoom
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PFP191_-_PE_-_SU_2024_2161.webp
File size
191.9 KB
Dimensions
1920px x 1001px

Share this media

Back
Bên trên Bottom