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

54 views3 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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents