Python Python Basics Types and Branching Comparisons

Blue DiamondXD
Blue DiamondXD
2,069 Points

why is the age variable next to the else:

why is it next to the else:???????

1 Answer

Josh Keenan
Josh Keenan
17,329 Points

I don't think there is any major reasoning behind it other than to help show what python can do and teaching it. It demonstrates that you can capture a variable within an if/else statement and then use it as you please.