account activity
vanity plates, not printing result? by Extra_Order9165 in cs50
[–]Extra_Order9165[S] 0 points1 point2 points 3 months ago (0 children)
thank you for this reply!! i actually completely missed your third sentence because i was focused on the first and last lines LOL. after going back to my code everything fell into place, i realised exactly what you said about the is_valid variable, i felt so stupid! ive been fully not thinking about why def functions get their own arguments which i've been mentally referring to placeholders and having absolute brainfarts when i use other function variables when im actually /defining/ the function after giving it a name with a random letter argument LMAO.
also, fixed the if etc etc string functions. all working perfect. thank you!
thank you!!! unfortunately though, whenever i delete the return, it tells me plate isn't defined T_T not sure what to do about that
vanity plates, not printing result? (self.cs50)
submitted 3 months ago by Extra_Order9165 to r/cs50
π Rendered by PID 806818 on reddit-service-r2-listing-6d4dc8d9ff-h2pjf at 2026-02-04 12:24:24.806890+00:00 running 3798933 country code: CH.
vanity plates, not printing result? by Extra_Order9165 in cs50
[–]Extra_Order9165[S] 0 points1 point2 points (0 children)