Python代写-BUSN5101
时间:2021-06-02
Programming Exercise_1 – BUSN5101
Rasoul Hejazi
Sep 2020
Some UWA student numbers is given in the table below.
22601201
22863103
22620819
22816842
18502845
22960656
21966457
21301634
22087192

1. Create a Python list and store the information in your IDE. Repeat and store the data in a
dictionary.


2. A. Write a function which takes a student number as an input and generate an email address
with the following format: 11111111@student.uwa.edu.au

B. Use a for loop to print out all student’s emails.

C. Repeat B but using a while loop


3. Without using Python built-in function max ( ), write a function which returns the maximum
number in a Python list. Apply that on the list you created in 1 and display the largest
student number.


4. Without using Python built-in function sorted ( ), write a function to sort the numbers in the
list from largest to smallest. Then apply the function on the student number list and check
its accuracy.



欢迎咨询51学霸君