Python Code to test a Puzzle and learn to do basic Math operators Add, Subtract, Multiply, Divide

preview_player
Показать описание
#pythonforbeginners #tutorialsupport #pythontutorial

This video starts with a fun puzzle that guesses the remainder of a few math operations. We then go back to our OTP program to write the code to simulate this Quiz and test that it works with all kind of numbers.
To do this, we need a variable to store the original number, and we look at the basic Math operators.

Link to Python documentation for Operations on Numeric Data Types

This is your opportunity to now code to do some more Math and have fun.
Do you know of similar Math Quizzes that you want to try out?

0:10 - Play the Quiz on Guessing the Math number residual
0:40 - Getting back to Pycharm Editor
1:17 - Summary on Generating 6-Digits OTP
2:24 - Listing down the steps to Code the Puzzle
Think of a number;
1 - Double it
2 - Now add 10
3 - Half the number, ie divide by 2
4 - Subtract your original number

What is the answer??
2:55 - Memorizing number and need of using variable in programming
3:44 - Different ways to store data
4:13 - using your first variable
4:56 - Coding the Quiz
5:39 - Using * for Multiplication
6:10 - Using + for Adding
6:29 - Using - Divide
6:43 - Need of another variable for the original number
7:34 - Using - Subtract
8:00 - Run the program
8:33 - Explore changing OTP in differs range and retest
8:52 - Summary of what we learnt
9:14 - How to look at the documentation to see the Math operators
9:44 - Importance of you Coding yourself
10:14 Lewis Carrol, Alice In Wonderland author and a Mathematician
Рекомендации по теме
visit shbcf.ru