Control Flow and Functions
2025-09-24
Slides: https://go.ncsu.edu/intro-to-prog-py
To get a complete
from this session:
Our team comes from a variety of academic backgrounds, including nuclear engineering, electrical engineering, marine ecology, history, information science, natural resources, and geographic information sciences.
Have workshop ideas? Contact us!
Direct email: getdatahelp@ncsu.edu
if
/else
), repeating (loops
)
functions
in Python
Introduction to Programming with Python: Control Flow and Functions
#
, name = 'alp'
cat_name
int
, str
, datetime
, bool
+
, -
, ==
, <=
, !=
beyond
basicsif
/else
for
/while
During the workshop:
Tips for following along:
Scroll down to the right session. Click “Open in Colab”
Click “Copy to Drive”
Direct email: getdatahelp@ncsu.edu
THANK YOU
Data Science Services