60 likes | 180 Vues
This assignment focuses on common misunderstandings in programming. Key topics include the immutability of strings and tuples, as well as string slicing and tuple indexing. Students are encouraged to compare strings, lists, and tuples to solidify their understanding. Make sure to refer to the standard solution for Assignment 2 for clarity. Additionally, lab work for the week emphasizes completing Part-1 of Assignment 5 and fully understanding Part-2, which will be elaborated upon in the next class. Teamwork is encouraged for better learning outcomes.
E N D
Course A201:Introduction to Programming 10/07/2010
Assignment - 2 • Most of the problems are due to incomplete understanding of the assignment • Go to standard solution for assignment 2 ->
Outlines for today • Strings are Immutable • String Slicing • Another sequence type: Tuple • Compare string, list, tuple in your mind • Tuple indexing • Tuples are Immutable • Tuple Slicing
Lab work for this week • Finish Part-1 in Assignment 5 • Understand Part-2 completely • which I will elaborate on Friday • Optional team work (recommended)
Have a nice evening! • See you tomorrow~