Python 3 - Using True and False

preview_player
Показать описание
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.

Longer description on using arrays/tuples/lists instead of IFs:

Scaling random numbers and changing their distribution:

Рекомендации по теме
Комментарии
Автор

If you want to "dislike" this video, perhaps you could leave a comment to explain why.

advanced_ict
Автор

Thanks! It was very helpful. A nice way to write short, compact, and intelligent code.

fromthefountofyouth
Автор

Nice video! Not exactly what I was looking for but I still learned a few things.

sulphurr
Автор

Great Video, I watched almost 4 times. And, got some concept.

MrFaiqueShakil
Автор

Write a single function that takes two string inputs and returns a single string of either "TRUE
or "FALSE". The function should determine if the first input is equal to the second input when
you are able to modify the first string input. The following modifications to the first string input
are permitted: letters may be capitalized, or discarded, but otherwise not changed.
Console.log the following examples
('ebCde', 'BCD') TRUE
('eCB' ECB') TRUE (e was uppercased)
(BcdEF, 'BCEF/) TRUE (c was uppercased, d was discarded)
('BCD', 'BcD') FALSE (C could not be lowercased)


Help me

Shadow_cheatz
Автор

Great video! but there is one minor problem, if the score is 0, there will still have 'es'. I changed:
'es'*(score != 1 and score != 0). right? Thanks!

quanyiwang