After two weeks of long drawn out theory we finally got round to starting the one thing that most people dream of doing, programming! I make it sound really excited when I put it like that but in all honesty i must have written at most like 4 lines of code max. It was really simple stuff but boy was it fun. I guess the whole idea of today's lesson was to look at the very very basics just to get us started.
The programming language that we are going to be using is Python so all we really did today was look at making a simple calculator that could do the basic adding, subtracting, times and divide. We managed to step into the region of powers as well just to mix things up a little.
we spent about an hour actually doing this and the other two hours watching videos of people explain things but i lost interest with that at the point where it sounded like they were eating the microphone. other than the boring videos i would really say that todays lesson 'Introduction to the programming environment' was a success, it kept me interested in the course and i definitely want to do more of this and explore different programming languages eventually.
Here is the level of complexity of todays programming (not very complex haha)
firstnumber = int(input("Enter a number between 1 and 100")
secondnumber = int(input("Enter another number between 1 and 100")
print("firstnumber + secondnumber =", firstnumber+secondnumber)
These three lines of code was a very basic calculator and something that allowed us to add two different numbers together and give us the answer, after that we just copied and pasted the three lines and then switched out the symbols and there you go. That was my very productive three hours in Alevel computing today...
thanks for reading :)
this is the sort of thing that i will be posting on my blog, it helps me get the things i learn in the lessons to stick into my head :) hope you enjoy listening to it :)
No comments:
Post a Comment