This week we covered the Command Line Interface, and introduction to programming using Python.
Thanks you so much for the amazing turnout, keep your eyes open for some upcoming special activities. Next week in Hello world, we'll keep things interesting with a look down paths for Web / App / Tech Development Roadmapping: https://github.com/kamranahmedse/developer-roadmap
If you've got any questions, please don't hesitate to email email@example.com and we'll get you all sorted. (I promise, I'll sort out Cash Memberships soon, as well as putting up Week 1's stuff.
For more interesting links, see here:
- Everything about CLI (Windows / MacOS / Linux)
- TL;DR (Too Long, Didn't Read) for Bash
- Why the CLI is important! – Reddit
- Codecademy - Learn Command Line
For an interactive look into that codebase, have a look at this Python demo:
We hope to use Scrimba going forward so let me know what you think. We've also included the code right here below:
import sys firstNumber = float(sys.argv) secondNumber = float(sys.argv) operator = sys.argv def calc(firstNum = 0, operator = "+", secondNumber = 0): # If the sign is + if (operator == '+') : return firstNumber + secondNumber # If the sign is - if (operator == '-') : return firstNumber - secondNumber # If the sign is / if (operator == '/') : return firstNumber / secondNumber # If the sign is * or the sign is x if (operator == '*' or operator == 'x') : return firstNumber * secondNumber print(calc(firstNumber, operator, secondNumber))
See you in Week 3