Python 3 - Using True and False

Published: 26 November 2018
on channel: Computing and ICT in a Nutshell
35,427
201

A look at how you can use True and False in your programming - not just to set the value of a Boolean variable, but also to display alternative text, increment scores or perform calculations.

Prime numbers: https://console.basthon.fr/?from=http...
Fuller coin flipping example: https://console.basthon.fr/?from=http...

NB. I have switched from Replit to Basthon since making the video - click the Exécuter button to run the programs above (and make sure you say No to your browser translating the page).

Longer description on using arrays/tuples/lists instead of IFs:
https://www.advanced-ict.info/blog/ar...

Scaling random numbers and changing their distribution:
https://www.advanced-ict.info/blog/sc...

You can also see the resources for learning to program on the Computing and ICT in a Nutshell website: https://www.advanced-ict.info/program...


On this page of the site you can watch the video online Python 3 - Using True and False with a duration of hours minute second in good quality, which was uploaded by the user Computing and ICT in a Nutshell 26 November 2018, share the link with friends and acquaintances, this video has already been watched 35,427 times on youtube and it was liked by 201 viewers. Enjoy your viewing!