It's been a very long time since I actually code. In C++ the pairing is implicit (nearest "if"), while Python's is explicit (indentation). So Python avoids the "dangling else" ambiguity that often confuses C++ newbies.
On Tue, Nov 11, 2025 at 8:54 PM glen <[email protected]> wrote: > Apologies to those of you who view email in proportional fonts. I've now > officially got Python brain. The world is on fire. > > ``` > #include <iostream> > > int main() { > if (true) > if (false) > std::cout << "Partially true" << std::endl; > else > std::cout << "Totally false" << std::endl; > > return 0; > } > ``` > -- > ¡sıɹƎ ןıɐH ⊥ ɐןןǝdoɹ ǝ uǝןƃ > ὅτε oi μὲν ἄλλοι κύνες τοὺς ἐχϑροὺς δάκνουσιν, ἐγὰ δὲ τοὺς φίλους, ἵνα > σώσω. > > > .- .-.. .-.. / ..-. --- --- - . .-. ... / .- .-. . / .-- .-. --- -. --. / > ... --- -- . / .- .-. . / ..- ... . ..-. ..- .-.. > FRIAM Applied Complexity Group listserv > Fridays 9a-12p Friday St. Johns Cafe / Thursdays 9a-12p Zoom > https://bit.ly/virtualfriam > to (un)subscribe http://redfish.com/mailman/listinfo/friam_redfish.com > FRIAM-COMIC http://friam-comic.blogspot.com/ > archives: 5/2017 thru present > https://redfish.com/pipermail/friam_redfish.com/ > 1/2003 thru 6/2021 http://friam.383.s1.nabble.com/ >
.- .-.. .-.. / ..-. --- --- - . .-. ... / .- .-. . / .-- .-. --- -. --. / ... --- -- . / .- .-. . / ..- ... . ..-. ..- .-.. FRIAM Applied Complexity Group listserv Fridays 9a-12p Friday St. Johns Cafe / Thursdays 9a-12p Zoom https://bit.ly/virtualfriam to (un)subscribe http://redfish.com/mailman/listinfo/friam_redfish.com FRIAM-COMIC http://friam-comic.blogspot.com/ archives: 5/2017 thru present https://redfish.com/pipermail/friam_redfish.com/ 1/2003 thru 6/2021 http://friam.383.s1.nabble.com/
