Felienne Hermans
Felienne Hermans
December 2nd, 2021

Code Reading Club Reading Countdown - 2

Article cover photo

Countdown - Snippet 2

Today's code reading countdown in Python.

Snippet

CRCRC-2

Snippet in text

def equality_check(self, args):
    arg0 = process_variable(args[0], self.lookup)
    arg1 = process_variable(args[1], self.lookup)
    if len(args) == 2:
        return f"str({arg0}) == str({arg1})" #no and statements
    else:
        return f"str({arg0}) == str({arg1}) and {args[2]}"
      
# submitted by Felienne (@felienne)

Question

What assumptions did the author of this code make?

Submission

Submit your answer in our form.