This week in Jeroo we have been using compound conditionals to make ifs and loops more specific or more general. This works by being able to add "and" or "or" to the statement. For example, you can have a loop run while the jeroo is next to a flower OR next to a net. This works the same way with "and" and reduce the amount of code used while trying to run a complex method that has a lot of variables. I think that compound conditionals are good to use and can help tremendously, but the logic behind the code is also different than from before. Getting used to this will take some time and it will provide a challenge, but once I get that down I think using compound conditionals will be a very useful tool.
-jag13
No comments:
Post a Comment