ENGINEER 1D04 Lecture Notes - Lecture 3: English Alphabet

55 views5 pages
scarletotter976 and 37168 others unlocked
ENGINEER 1D04 Full Course Notes
4
ENGINEER 1D04 Full Course Notes
Verified Note
4 documents

Document Summary

Meaning that it can"t be changed: list is mutable. Meaning it can be changed: len can be used to get the length of the sequence, +: can be used for concatenation, *: is used for repetition. 1 from the position of the element in the sequence. Example: sample [4,6,2,5], sample[3] is 3: if someone wants to pick part of the sequence, they can do so by using the following notation. For the same sample example: sample[1:3], the output would be: 6,2. The j is not included: a body of code can be iterated over the members of a sequence value using a for loop, in python, a list is a finite sequence of values. List = [29,2001,20,34: lists are mutable via assignment. Pick the element in the list that you want to change and then assign it to what you want to change it into. Strings in python: a string is finite sequence of characters.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents