Pre-Quiz Revision Notes


Alrighty, so I'm prepping for the quiz tomorrow, but to be honest I don't have high hopes. I've gone over the test quiz, and it's still like trying to decipher another language. I can make a little headway in lectures, and it feels like I'm on the cusp of understanding stuff, but then I leave the room and within an hour it's gone. But moping about my inability to retain information won't help me in this module, so here we go.

So after going through the trial quiz, I gave it my best shot but there's still a lot I don't understand. Plus, the quiz doesn't actually tell you what you got right or wrong so I'm still in the grey here. I managed to figure out the len() function is essential for returning the number of items in a list/string, but I don't get the %! stuff. Trying to look into it now. 

Oh, so it's just an operator for modulus. That's great, but no idea what that is. Time to research.

This makes no sense. How is 10 % 3 = 1? Or 5 % 2 = 1? I am ridiculously confused. It says 'Modulus is used as an arithmetic operator when you want to divide two numbers and want the remainder as the output.'

Ohhhhhhhhhh. I get it now. So it'll want to keep things as an integer, so whole numbers only. 10 % 3 is like 3.33333, which is no bueno, but there are 3 even amounts of 3 in ten with 1 remaining, hence 1. 5 % 2 would be 2, with 1 remaining. Fuck me, this is confusing. That took way too long to process.

Gone over some more lists stuff to get that refreshed in my head sponge, but still have my concerns over this test.

Leave a comment

Log in with itch.io to leave a comment.