Python Day 32 – elif and a bug fix

I reviewed elif statements which are useful when you have more than two potential actions depending on an input. You just use them in between your “if” and “else” statements and can put however many you want!

Neat stuff.

Also finally figured out how to fix it when Jupyter notebooks stops running code and has a [*] next to the code. That means its stuck in a loop I believe, and to get out of it I simply had to click the “stop” button at the top menu. If that doesn’t work apparently one needs to restart the kernel or restart notebooks overall.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: