J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:07

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

teach:fpro:lectures:07 [10/10/2019 20:00] (current)
Correia Lopes created
Line 1: Line 1:
 +====== LE07: 15/10/2019 ======
 +
 +**Master in Informatics and Computing Engineering\\
 +Programming Fundamentals\\
 +Instance: 2019/2020**
 +\\
 +---
 +\\
 +
 +====== Lecture #7 :: 15/10/2019 ======
 +
 +===== Goals =====
 +
 +By the end of this class, the student should be able to:
 +  * Describe how to work with strings as single things
 +  * Describe how to work with the parts of a string
 +  * Enumerate the main methods available to work with strings
 +  * Describe how to format strings
 +
 +===== Content =====
 +
 +  * Data types
 +    * 5.1.1 A compound data type
 +    * 5.1.2 Working with strings as single things
 +    * 5.1.3 Working with the parts of a string
 +    * 5.1.4 Length
 +    * 5.1.5 Traversal and the ''​for''​ loop
 +    * 5.1.6 Slices
 +    * 5.1.7 String comparison
 +    * 5.1.8 Strings are immutable
 +    * 5.1.9 The ''​in''​ and ''​not in''​ operators
 +    * 5.1.10 A find function
 +    * 5.1.11 Looping and counting
 +    * 5.1.12 Optional parameters
 +    * 5.1.13 The built-in ''​find''​ method
 +    * 5.1.14 The ''​split''​ method
 +    * 5.1.15 Cleaning up your strings
 +    * 5.1.16 The string ''​format''​ method
 +    * Exercises
 +
 +===== Bibliography =====
 +
 +  * Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, //How to Think Like a Computer Scientist — Learning with Python 3//, Release 3rd Edition, 2019 [[https://​media.readthedocs.org/​pdf/​howtothink/​latest/​howtothink.pdf|[PDF] ]] (Section 5.1)
 +
 +===== Materials =====
 +
 +  * J. Correia Lopes, //Study materials//,​ [[https://​github.com/​fpro-feup/​public/​tree/​master/​notebooks|GitHub]] (Notebook 07)
 +  * Brad Miller and David Ranum, //Learning with Python: Interactive Edition//. Based on material by Jeffrey Elkner, Allen B. Downey, and Chris Meyers [[https://​runestone.academy/​runestone/​books/​published/​thinkcspy/​Strings/​toctree.html|[HTML] ]] (Chapter 9)
 +  * Moodle, [[https://​moodle.up.pt/​course/​view.php?​id=39211|Activities for FPRO]]
 +
 +===== Summary =====
 +
 +  * Compound data types. Strings. Working with strings. Operations with strings. Format strings. Strings are immutable.
 +
 + --- //FPRO, 2019/20//
 +
 +[[06|« Previous]] | [[index|Index]] | [[08|Next »]]
  
teach/fpro/lectures/07.txt · Last modified: 10/10/2019 20:00 by Correia Lopes