CS 135/Additional Materials/Chapter 3

From Worcester State University Computer Science Department Wiki
Jump to: navigation, search

Resources are grouped by sections of the chapter. When adding a new resource, please try to add it to the appropriate section.

Section 3.1 Objectives

Section 3.2 Introduction

Section 3.2.1 Concatenation

http://www.pythonforbeginners.com/concatenation/string-concatenation-and-formatting-in-python This website helps break down concatenation very simply. (Katelyn Ellis 10/23/16)

Section 3.2.2 Repetition

http://www.annedawson.net/Python3_Repetition_StringFormatting.htm This link will help you with Repetition and String formatting. It also goes over for loops and lops within loops.

http://doc.pyschools.com/html/forloop.html This link may also be useful. (Randolph Mogren October 23, 2016)

https://www.tutorialspoint.com/python/python_strings.htm (How to Use Repetition & other Functions in Python) - This link will help you further understand how to properly use and comprehend the repetition method in Python, as well as numerous other functions. Overall, a very useful link/database. (Ryan Connor October 25, 2016)

Section 3.2.3 Indexing

http://www.pythonlearn.com/html-008/cfbook007.html This website gives a thorough explanation of indexing of different names and characters and gives several examples of different types. Last edited not known. (posted on October 6, 2016 by Anna Haynes).

https://www.tutorialspoint.com/python/python_lists.htm I found this website give a quick and easy understanding of indexing for python. Posted in 2016. (posted on October 25, by Finn McCool)

https://www.tutorialspoint.com/python/list_index.htm This is a website that I also found that provides a very clear explanation of what the 'index()' function does. Posted 2016. (Posted on October 25, 2016 by John Kehoe)

Index Operator. https://interactivepython.org/runestone/static/pip2/Sequences/IndexOperatorWorkingwiththeCharactersofaString.html This link provides a visual for indexing similar to figure 3.1 in the book. I chose this link because it provides two check your understanding problems that offer immediate feedback. (Posted 10/27/16. Jim LeNoir)

Section 3.2.4 Slicing

https://www.digitalocean.com/community/tutorials/how-to-index-and-slice-strings-in-python-3 created on September 28,2016 this website gives a detailed descripition on how to both slice and index strings and gives plenty of examples. (posted by Paige Giordano on October 17, 2016)

https://www.youtube.com/watch?v=lMQRjpgJslI This YouTube video show you examples of using slicing and indexing with string. Published on Sep 17, 2015 (posted by Megan Bellve on October 22, 2016)

http://stackoverflow.com/questions/509211/explain-pythons-slice-notation This website gives more indepth examples and explainations on how to go about using the slicing operator. The use of comments is extremely helpful. (posted by Sara Cohen on October 24, 2016)

https://www.youtube.com/watch?v=_IySULAqE_k : Slicing tutorial - This video shows step by step how slicing works in python and how you can use it in different ways. (posted by Chantal Thomas on 10/24/2016)

https://www.youtube.com/watch?v=wiMLxYJTca0 This video begins with a basic string and provides a walk through of the built in functions within the Python program. The author explains how to use the length function to output the number of characters and the slice function, to pull specific information from the string. (posted by Ava Lauer on October 25, 2016)

http://stackoverflow.com/questions/509211/explain-pythons-slice-notation This website explains the basic tools you will need to know ignorer to understand the slicing process.(posted by Taylor Hutchings on October 25 2016)

http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/strings3.html This site has a different chapter number, 2, however, I found section 2.1.3 to be helpful with slicing. There are also other sections that relate to our chapter 3 which may be helpful. (posted by Kay Paradis on October 25, 2016)

https://www.dotnetperls.com/slice-python This website shows different parts of slicing and visual examples along with explanations on how to do it and how it works. unknown when this was last edited (posted by Travis Campbell October 25 2016)

Section 3.2.5 String Methods

"Python Tutorial v3.2.5 Lesson 22.1 - String Methods" https://www.youtube.com/watch?v=mcjIzCYj6i8 (created on 5 August 2015) This video describes how string methods such as upper, lower, and capitalize are used to format/convert strings, including how multiple methods can be combined in one statement. It also discusses how to use the count and find methods to search within a string. (added by Nicole Daury on 11 October 2016)

"Section 5.1: Data Structures - More on Lists" https://docs.python.org/3/tutorial/datastructures.html (2016) The Python documents are very helpful for learning and understanding different methods. In this case, each list method is described with text and examples. (added by Leah Stanley on 23 October 2016)

https://www.tutorialspoint.com/python/python_lists.htm This source shows and explains sequencing and strings in python. There are also tabs on the side to find help with other sections of python.

Section 3.2.6 Character Functions

https://www.youtube.com/watch?v=eg7x2S78u_U (created Feb 9, 2015) This video goes over the ord() and chr() function to get ASCII value of a character or get the character from an integer value in Python. (Added by Clara Gatsios, October 19, 2016)

Section 3.3 Encoding and Decoding Messages

https://www.youtube.com/watch?v=TJQD4dnCbAA This video helped me understand more about decoding messages. I found the subject really helpful and easy to understand after watching this video. (Posted by Alex Lombardi on 10/25/2016)

Section 3.4 Transposition Cipher

Section 3.4.1 Encrypting Using Transposition

https://www.youtube.com/watch?v=0um-_4SvPg0 this video describes how to use encrypting using transposition. it allows the process to be broken down into steps (posted by Patrick Taylor (10-24-16)

Section 3.4.2 Decrypting a Transposed Message

https://www.youtube.com/watch?v=8PzDfykGg_g Encryption and decryption. This is a very helpful video while it is a little long to help you understand about encryption and decryption. October 23, Eliza Bulger

[1] This video goes in depth on how to use the rail fence decipher method in python. October 27, 2016 Sam Hanson

Section 3.4.3 Asking for Input

https://m.youtube.com/watch?v=Sb0nozcDoLM. This reviews print and connects it with input at about 9 minutes. (October 25, Jared Walsh)

Section 3.5 Substitution Cipher

https://inventwithpython.com/hacking/chapter17.html This page provides an alternate walk-through on the creation and usage of the substitution cipher. A helpful bonus is the outline at the top of the page, which tells you exactly which types of python topics will be discussed and implemented in the creation of the cipher (Posted by Alec Barber 10/23/2016) https://www.youtube.com/watch?v=1P8Xpxm76e8, this video provides a very clear, concise and useful explanation of substitution ciphers. It shows how to create a key and how to go from encryption to decryption. (Posted by Hanan Ibraheim on 10/24/2016)

http://practicalcryptography.com/ciphers/ This link gives an overview of Ciphers and then has links that go more in depth with the different ciphers used in coding. Scroll down to "classical ciphers" and there will be a link that explains and shows examples for a Caesar Cipher and Simple Substitution Cipher. (Posted by Hinal Vaghela on 10/25/2016)

= Section 3.6 Creating a Key

"The Vigenere Chapter" - https://inventwithpython.com/hacking/chapter19.html - created in 2001 - This resource is an online book that provides explanations of the creation of the vigenere cipher and examples of programs and how they work. - Jennifer Recalde - 23 October, 2016.

Section 3.8 Summary