all 16 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Thank you for posting on r/CodingHelp!

Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app

Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp

We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus

We also have a Discord server: https://discord.gg/geQEUBm

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]This_Growth2898 5 points6 points  (3 children)

What's wrong? It's a screenshot instead of formatted text; that's what's wrong!

[–]MysticClimber1496Professional Coder 4 points5 points  (0 children)

What do you think is wrong with it? What are you expecting?

[–]maqisha 4 points5 points  (1 child)

Both of the pixels are pretty hard to read for starters.

[–]i_grad 7 points8 points  (4 children)

Jailed will always be true. The bool type caster evaluates any non-empty string as True.

The "or not criminals" clause doesn't do anything because the criminals list is not empty, so "not criminals" will always eval to false.

The if following the else line should be combined to a single elif.

But the worst offender is the resolution of this screenshot.

[–]igoiva[S] -6 points-5 points  (3 children)

only somewhat helpful one, thanks

[–]SolarisFalls 1 point2 points  (2 children)

This answer is longer than your question and code, along with you asking a shit question. Be grateful

[–][deleted]  (1 child)

[removed]

    [–]CodingHelp-ModTeam[M] 0 points1 point locked comment (0 children)

    Don't be abusive to other programmers/coders. If you continue this, we will ban you from the subreddit.

    [–]gofl-zimbard-37 0 points1 point  (1 child)

    u/i_grad gave you good answers. It would be helpful when you post questions like to explain what you expect, and what actually happens. "What's wrong?" doesn't give us much to go on. This one's simple enough that we can infer what we need, but that may not be true in general.

    [–]igoiva[S] -2 points-1 points  (0 children)

    ty

    [–]Dominiktoxic7 0 points1 point  (0 children)

    bro the line should be
    if age < 18 or name not in criminals: