1
Lab 8
- Reading, writing files
- Modules
- Exception Handling
- Using lists to solve problems
March 12, 2019 Sprenkle - CSCI111 1
Lab 8: Pair Programming
March 12, 2019 Sprenkle - CSCI111 2
Lab 8 Reading, writing files Modules Exception Handling Using - - PDF document
Lab 8 Reading, writing files Modules Exception Handling Using lists to solve problems March 12, 2019 Sprenkle - CSCI111 1 Lab 8: Pair Programming March 12, 2019 Sprenkle - CSCI111 2 1 Pair Programming There are two of
March 12, 2019 Sprenkle - CSCI111 1
March 12, 2019 Sprenkle - CSCI111 2
March 12, 2019 Sprenkle - CSCI111 3
March 12, 2019 Sprenkle - CSCI111 4
words = sentence.split() shorthandList = [] for word in words: shorthandList.append(word[0]) shorthand = "".join(shorthandList) shorthand = shorthand.lower() print("Shorthand is:", shorthand) words = sentence.split() shorthand = "" for word in words: shorthand += word[0] shorthand = shorthand.lower() print("Shorthand is:", shorthand)
March 12, 2019 Sprenkle - CSCI111 5
words = sentence.split() shorthandList = [] for word in words: shorthandList.append(word[0]) shorthand = "".join(shorthandList) shorthand = shorthand.lower() print("Shorthand is:", shorthand) words = sentence.split() shorthand="" for word in words: shorthand += word[0] shorthand = shorthand.lower() print("Shorthand is:", shorthand)
March 12, 2019 Sprenkle - CSCI111 6
March 12, 2019 Sprenkle - CSCI111 7
March 12, 2019 Sprenkle - CSCI111 8
March 12, 2019 Sprenkle - CSCI111 9
March 12, 2019 Sprenkle - CSCI111 10
March 12, 2019 Sprenkle - CSCI111 11