1 / 6

Understanding Strings and Tuples in Programming

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.

hayes
Télécharger la présentation

Understanding Strings and Tuples in Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Course A201:Introduction to Programming 10/07/2010

  2. Assignment - 2 • Most of the problems are due to incomplete understanding of the assignment • Go to standard solution for assignment 2 ->

  3. 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

  4. Go to lecture slides

  5. 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)

  6. Have a nice evening! • See you tomorrow~

More Related