CISC 101 Lecture Notes - Lecture 14: String Literal, Complex Instruction Set Computing

72 views4 pages

Document Summary

Introduction to computing (cisc 101) lecture 14. The following is code that we wrote on python shell in class today. There is also some code i have attached that we wrote in the python program. We talked more about lists today, and went into something called the dictionary. The examples done in class represent questions asked in the stringlistpractice document available on the portal. >>> #mystring = rowboat - - make it towboar >>> newstring = mystring[- 1] + mystring[1:len(mystring)- 1] + mystring[0] >>> #you have a list of lists: [["a","b","c"], [1,3,5], ["word", "excel", "powerpoint"]] >>> list = [["a","b","c"], [1,3,5], ["word", "excel", "powerpoint"]] >>> mylist = [["a","b","c"], [1,3,5], ["word", "excel", "powerpoint"]] >>> #tic tac toe game example from stringlistpractice. [[none, none, none], [none, none, none], [none, none, none]] Please enter the row position (0,1 or 2): 1. Please enter the column position (0,1 or 2): 1. [[none, none, none], [none, "x", none], [none, none, none]]

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