Thursday, March 15, 2018

Tech Leader Tidbit: Avoiding Theft

It is said that Theft is a crime of opportunity. Here’s a few suggestions to reduce those odds. Don’t bring your valuable items to the PE locker room. (There are signs posted on the walls). Don’t leave things lying around unattended, like the Cafeteria, Study Hall, or games. Keep important items in your main locker when not in use.

Finally, Buy Insurance!  It will helps knowing you can get a replacement at no added cost.

Monday, March 12, 2018

Daily Dose of Code : Learn Programming with

For beginners, I believe using the free website is a great platform to code within. It is great because when a mistake is made, a red x appears on the side of the line of code which indicates that a mistake has been made. It also tells what type of error it is, whether that be a syntax error or an incorrect indentation. My code has been done within repl, and I began by clicking "New Repl" and then selecting the Python3 option.

I will now show you how to find the factors of any given number. The first step would be to define your function. Then in that same line of code, you should list your argument within the parentheses. The next step you would take is creating a list. That way your code will give your output in a list with brackets. Once that is done, a range should be established. Then your next steps will involve including your equation which will ultimately give you your factors. The next would be to add them to your list. At the end you will want to "return" your list so that the code stops running and produces your output.

This list is great for different scenarios. A great example would be trying to solve a math problem. There are many other times this can be used and is quite a simple, yet useful tool.

Sidra Mansoor
Tech Leader