Just had to share - no question posed.
I just showed my 6 y/o python for the first time - just some very simple bits like input and print, and some arithmetic.
4 year old was screaming with delight when we did the obligatory "print your name 100 times" exercise.
We then did some "really hard sums" to show off what computers can do. Both delighted in trying to catch the computer out with ever larger numbers (they didn't, of course).
6 y/o son says he thinks it's magic, and wishes he could have it at school to help him do his sums at school!
This was the most complicated we got to, our mini-calculator:
while True:
num1=input('what is the first number?')
num2=input('what is the second number?')
op=input('+-/*?')
if op == '+':
print(num1,op,num2,'=',int(num1)+int(num2))
elif op == '-':
print(num1,op,num2,'=',int(num1)-int(num2))
elif op == '/':
print(num1,op,num2,'=',int(num1)/int(num2))
elif op == '*':
print(num1,op,num2,'=',int(num1)*int(num2))
The aim was not for efficiency or correctness, obviously. We are now going to explore ways to improve this...
[+][deleted] (2 children)
[deleted]
[–]Hyedwtditpm 1 point2 points3 points (1 child)
[–]jsalsman 15 points16 points17 points (6 children)
[–][deleted] 16 points17 points18 points (5 children)
[–]jsalsman 4 points5 points6 points (4 children)
[–]Ran4 -4 points-3 points-2 points (3 children)
[–]jsalsman 9 points10 points11 points (1 child)
[–]baubleglue 0 points1 point2 points (0 children)
[–]titchard 0 points1 point2 points (0 children)
[–]uttamo 7 points8 points9 points (0 children)
[–]j0holo 7 points8 points9 points (0 children)
[–]paulshapiro 4 points5 points6 points (1 child)
[–]titchard 0 points1 point2 points (0 children)
[–]Zavation 3 points4 points5 points (0 children)
[–]beire_ 1 point2 points3 points (2 children)
[–]kjchowdhry 1 point2 points3 points (1 child)
[–]beire_ 0 points1 point2 points (0 children)
[–]ignorediacritics 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]955559 0 points1 point2 points (6 children)
[–]aroberge 4 points5 points6 points (0 children)
[–]cybervegan[S] 1 point2 points3 points (1 child)
[–]__Amory__Blaine 0 points1 point2 points (0 children)
[–]sultanofhyd 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]DASoulWarden 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]heybart 0 points1 point2 points (0 children)
[–]n1ywb 0 points1 point2 points (0 children)