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
Version 1:
Version 2:
Version 1:
¶
a
=
5
b
=-
1
w
=
(
2
*
a
-
b
)
**
0.5
print
(
w
)
Version 2:
¶
from
math
import
sqrt
a
=
5
b
=-
1
w
=
sqrt
(
2
*
a
-
b
)
print
(
w
)