Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Exam (elaborations)

COMP CS 1101 Discussion Unit 7 CS 1101

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
15-03-2022
Written in
2021/2022

Describe how tuples can be useful with loops over lists and dictionaries, and give Python code examples. Create your own code examples. Do not copy them from the textbook or any other source. Your descriptions and examples should include the following: the zip function, the enumerate function, and the items method. 51 words Permalink | Reply Re: Discussion Forum Unit 7 by Lansana Ansumana - Thursday, 17 October 2019, 5:17 AM The Solution - Lists, Tuples, and Dictionaries For these three problems, Python uses three different solutions - Tuples, lists, and dictionaries:  Lists are what they seem - a list of values. Each one of them is numbered, starting from zero - the first one is numbered zero, the second 1, the third 2, etc. You can remove values from the list, and add new values to the end. Example: Your many cats' names.  Tuples are just like lists, but you can't change their values. The values that you give it first up, are the values that you are stuck with for the rest of the program. Again, each value is numbered starting from zero, for easy reference. Example: the names of the months of the year

Show more Read less
Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
March 15, 2022
Number of pages
18
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

R237,82
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Havilah Yale University
Follow You need to be logged in order to follow users or courses
Sold
291
Member since
4 year
Number of followers
249
Documents
2335
Last sold
20 hours ago

3,6

44 reviews

5
19
4
8
3
6
2
2
1
9

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions