A quickstart tutorial for learning to program in Ruby on the Raspberry Pi. In this video we introduce variables, lists, and creating a function to calculate an average.
AWS.ECommerceService.NoExactMatches: We did not find any matches for your request.
whats with the thumbs downs? this is a great tutorial. keep them coming
Me no good at programming, it contains numbers and stuff 🙁
very good tutorial. even if its the very basics and ive been using c++ and others for over 4 years i kept watchin
Generally, don’t use apt-get to install Ruby because it will install older versions, such as 1.9.3 in this example. Install RVM and use that to get later versions of Ruby.
In your example the values in the array sum up to 24. Divided by the count, which is 5 gives 4, which in some cases might not be what you would expect. You did an integer devision.
Great little programmer tutorial Dave, nice and clear. Should be great for anyone getting into programming on the Pi but not being up to the level of using C.