The given Q2.py file contains statements to input a sentence string. You should write statements to
✓ Kizspy. me reverses all of the words in string.
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: I learn PFP191
Output for marking:
OUTPUT:
PRO192 and PFP191
Output for marking:
OUTPUT:
PFP191 learn I
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 primes number in the list.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see they are necessary.
Sample input and output:
Zoom
Al
..
+ 100%
Close