AR10366 (Computer Applications): Programming in Python
Summary of Lessons
Installing and Running Python on Your Own Computer
Introduction to Programming in Python
Lesson 1: Python Basics
Lesson 2: Strings and Variables
Lesson 3: Writing Functions
Lesson 4: Conditionals and While Loops
Lesson 5: Lists, Iteration and
for
Loops
Lesson 6: Plotting and Arrays
Lesson 7: Manipulating Data and Files
Lesson 8: 2-Dimensional Arrays, Dictionaries and DataFrames
Lesson 9: Statistical Data Analysis
Lesson 10: Debugging Code
Appendix 1: Writing Programs
Appendix 2: Structuring Complex Code
.ipynb
.pdf
Binder
Contents
def
trunc5dp
(
x
):
x
=
x
*
1e5
x
=
int
(
x
)
x
=
x
/
1e5
return
x
ans
=
trunc5dp
(
4321.1234567
)
print
(
ans
)