Professional Documents
Culture Documents
M110-TMA-Spring 22-23
M110-TMA-Spring 22-23
Contents
Warnings and Declaration…………………………………….………………………………......1
Question 1 ……………….…………………………………. ………………………………...…..2
Question 2 ………………………………………………………………………………….…..…..2-3
Question 3 ………………………………………………………………………………….…..…..3
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA
work and avoid plagiarism. The AOU has implemented sophisticated techniques for
plagiarism detection. You must provide all references in case you use and quote
another person's work in your TMA. You will be penalized for any act of plagiarism as
per the AOU's rules and regulations.
I hereby declare that this submitted TMA work is a result of my own efforts and I have
not plagiarized any other person's work. I have provided all references of information
that I have used and quoted in my TMA work.
Name of Student:……………………………..
Signature:…………………………………………...
Date:…………………………………………………
Problem: Based on the material presented in SS1 lecture and referring to the above
reference, write a python program that produces the below diagram.
- You should prompt the user to input the name of the file. (Use your first name as
the file’s name to be entered).
- Use your last five university ID numbers to input the values.
For example, if your ID is 2315161678235, then you will use the numbers 7,8,2,3, and
5 as the values to be entered and added to the list that should show in the file.
b- Write a Python code that reads the above file content, and displays the list as shown
below.
c- Assemble both parts in one program and run it, show a screenshot of your program
and its output in addition to a screenshot of the text file that has been created.
End of TMA