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 enquiries@sudo.org.au 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:

Python Code

For an interactive look into that codebase, have a look at this Python demo:
https://scrimba.com/c/cGvBPdU6

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[1])
secondNumber = float(sys.argv[3])

operator = sys.argv[2]


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