560 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Open the Python code file in the above folder - it should contain a list of British Prime Ministers from the start of the 21st century up to Rushi Sunak:
The list of Prime Ministers contains one extra name!
Set a variable to hold the number of items in the sequence (use the len function), then use this as an index to change the last item in your sequence to your name.
Note that this is impossible as things stand, because you're looking at an immutable sequence - you'll need to convert the tuple to a list before you can change anything in it.
Add a command to sort your list into alphabetical order.
Loop over the items in this (now sorted) list, writing out for each Prime MInister their name and their position in the list:
Your order may be slightly differnent, depending on where your name comes in the alphabet.
Here's the syntax of the enumerate function, as a reminder:
The syntax of the enumarate function, which returns an extra varaible for each item giving its order within the list.
When you've finished, save your program as Tupling the PM and then close it down.
25 Aytoun Street