Write a python program that:
- - Defines a tuple of 5 integer numbers
- - prints the tuple
- - Appends a new value to the end of the tuple
- - prints the tuple again
Please note that appending a new value to a tuple will change the tuple. However, as you learned in Unit 5, tuples are immutable i.e. do not change. Therefore, to solve this problem, you need to find a way to change a tuple.
--------------------------------------------------------------------------------
- For this project, you will useIDLEto develop and test your solution (See the notes section below).
-Create a new file inIDLEand write your code in there.
- Run, test and debug your program.
- After your program runs successfully, save it in a file calledappendTuple.pyand submit your .py file here on Canvas (This assignment does not involve MindTap).
=================================================
Not
es:
IDLEis the python development environment that gets installed when you install Python on your computer.
- If you have not done so, please install the latest Python 3 release from the following link on your computer: https://www.python.org/downloads/
- If you have not usedIDLEbefore, do a google search on how to run and useIDLEand watch the following tutorial videos:
Windows
https://www.youtube.com/watch?v=5hwG2gEGzVg
Mac
https://www.youtube.com/watch?v=nxLEJTnuvRM
- I also recommend to write and run a few simple test programs to get familiar with theIDLEprogramming environment before starting to work on the project.