PFP191_-_PE_-_SU_2024_2161.webp
Rukia123

PFP191_-_PE_-_SU_2024_2161.webp

  • Media owner Rukia123
  • Ngày thêm
1
3. count repeated characters in a string and represent it as a dictionary. (1 point)
The output should be:
Your selection (1 -> 3):
3
Enter a string: PE PFP191
OUTPUT
{'P': 3, '1': 2}
Question 2 (3 points)
Write a program in Python that reads a text file "data.txt" (attached in the given and the file name is entered from the keyboard) containing many integer numbers.
1. Read each number in the file and print them on the screen. (1 points)
The output should be:
Zoom
+ 100%
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,283
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
180 KB
Dimensions
1920px x 1001px

Share this media

Back
Bên trên Bottom