• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle












  • gears@lemmy.worldtoJerboaHow do I mark a post as 'read'?
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    It is for me on the latest Github release. I don’t know if the app stores release updates as quickly so I just started using the apk’s off jerboa’s git.

    I know that my Play Store version wasnt as up to date as the one I installed, but I also didn’t check for updates on the play store before switching.

    But yeah everytime I go back to a community the post was just on changes color.




  • It’s because the number variable is a boolean, equal to “is value % 3 zero?”. You’re appending that result to the list for every number.

    What you want is:

    multiples_of_3 = []
    for value in range(3, 31):
        if value % 3 == 0:
            multiples_of_3.append(value)
    
    print(multiples_of_3)
    

    The if statement means that you only append to the list if it’s a multiple.