PFP191_-_FA_2023_-_PE_939.webp
H

PFP191_-_FA_2023_-_PE_939.webp

  • Media owner Havoc93
  • Ngày thêm
-Input: n = 9
List: 2 3 2 3 5 2 3 2 5
After processing: result = 5
Output for marking:
OUTPUT:
5
Question 4 (3 marks)
The given file Q4.py already contains statements to input data for the string (a sentence contains words separated by spaces) and a string variable named str. You should write statements to count words (notcase sensitive) that end with string str.
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
Enter a sentence: "hello worLD world"
Enter a string: rLd
After processing: count = 2
Output for marking:
OUTPUT:
2
UOVERFLOW.C
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PFP191_-_FA_2023_-_PE_939.webp
File size
74.8 KB
Dimensions
1552px x 618px

Share this media

Back
Bên trên Bottom