☑Kizspy.me
Output for marking:
OUTPUT:
Output for marking:
OUTPUT:
Winter
Error
Question 2: (3 marks)
The given Q2.py file contains statements to input a sentence string. You should write statements to sum
of all positive numbers in the string; if there is no number, return 0.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
Sample input and output:
Enter a string: PFP191 and PRO192
Enter a string: PRO
Processing: 191+ 192=383
Output for marking:
Processing: 0 0
Enter a string: PFP191 and PRO-192
Processing: 191 +192=383
OUTPUT:
383
Output for marking:
OUTPUT:
Output for marking:
OUTPUT:
0
383
Question 3: (2.5 marks)
The given file Q3.py already contains statements to input data for the list. You should write statements
to count the number of values whose last digit is 5 in the list.
Notes:
Zoom
-Do not edit given statements in the main function.
- You can create new functions if you see they are necessary.
+100%
Close