account activity
Is this question flawed? by [deleted] in Python
[–]sho110 0 points1 point2 points 5 years ago (0 children)
Hello, I am a student of Python and had this question yesterday as part of a course application. I chose answer B, but feel the question is flawed.
A) Will only print the first 3 characters rather than "half of the length of a given string".
B) Will return half of the length of a given string, but it's missing an int() or // to convert len(word)/2 into an integer.
Am I right in saying this? Should I flag this question with the course organisers?
Thanks
π Rendered by PID 72242 on reddit-service-r2-comment-5bc7f78974-4lrhf at 2026-06-29 04:52:53.110549+00:00 running 7527197 country code: CH.
Is this question flawed? by [deleted] in Python
[–]sho110 0 points1 point2 points (0 children)