6.100L | Fall 2022 | Undergraduate

Introduction to CS and Programming using Python

Lecture 5: Floats and Approximation Methods

Topics: Simple Algorithms: approximation method, floats

Lecture Notes

Lecture 5: Floats and Approximation Methods

Lecture 5 Code

Readings

Ch 3.3, 3.2

Finger Exercise Lecture 5

Assume you are given a string variable named my_str. Write a piece of Python code that prints out a new string containing the even indexed characters of my_str. For example, if my_str = "abcdefg" then your code should print out aceg.

6.100L Finger Exercises Lecture 5 Solutions

Course Info

Instructor
As Taught In
Fall 2022
Learning Resource Types
Lecture Videos
Lecture Notes
Problem Sets
Programming Assignments with Examples
Readings
Recitation Notes