Getting data into Python
Here is a worksheet on getting data into Python.
1) Write a program that displays a list of toppings available on a pizza. The program should then ask the user to enter their selection of three toppings, one at a time. Finally, the user’s selections should be displayed. Exit the program only when the ENTER key has been pressed.
2) Ask the user to enter in an area code for a landline e.g. 02476. They should then be asked to enter a phone number e.g. 123456. The program should then display the complete number exactly like this (02476) 716293. HINT: the use of sep=”” at the end of the print statement might be useful! Exit the program only when the ENTER key has been pressed.
3) Write a program that asks the user for their title (Mr, Miss etc), then their full name, then the first line of their address, followed by a town and then a postcode. The program should then display a label that can be used to mail out a parcel. Exit the program only when the ENTER key has been pressed.