Topics: Simple Algorithms: approximation method, floats
Lecture Notes
Lecture 5: Floats and Approximation Methods
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
.