Thread has been deleted
Last comment
python coders come
Maki | 
Croatia AVID_MAKI_SUPPORTER 
we have informatics in school and its a joke of a subject usually but now we are doing basic programming in python. im at an intermediate level i would say, so everything we are doing i solve with ease. last time, we had to solve a problem that was to be grade, mine was a simple calculator. though she graded it with what americans would call a B (a 4 in our system, out of max 5). i literally feel cheated because i think she didnt even care about the code and instead lowered the grade because "i didnt follow the instructions on the paper", instructions which had a literal hole in the logic. code below and ill post why grade was lowered in the comments. pastebin.com/d2NyZSv0
2023-03-20 21:20
Topics are hidden when running Sport mode.
you are supposed to input the first number -> check if its out of a range (10 - 100) -> if yes, print that it is and EXIT THE PROGRAM but if it isnt input second number. if the second number is out of range -> print BOTH NUMBERS (???) are out of range and exit. literally a gap in the logic. i wanted to fix this by first inputting both numbers and then deciding which is out of range.
2023-03-20 21:22
2 replies
#39
 | 
England Tolland
I haven't read your code much, but from when I was doing python at school at GCSE and A level, it was necessary to follow the instructions even if they aren't necessarily the best way for doing something. If your code makes you input something in a different order to the order the instructions state then you aren't doing what is asked of you. I'm pretty sure a similar scenario probably happened to me and you just have to accept that these coding tasks are more about following the instructions than writing the best code.
2023-03-20 22:01
1 reply
yup thats exactly why i got the grade lowered. but we are in highschool yet the teacher is larping like its uni. she could easily not follow the criteria in cases like mine and just give me the grade i deserve but she instead feels like teaching me some sort of lesson. my problem isnt fundamentally with the grade or the code but with her and her double standards. she very often tells us we need to think for ourselves, come up with our own original solutions and in general do whats best even if it breaks rules. but then when i actually do decide to do it, it ends up being punished. hope she drops dead.
2023-03-20 22:07
skill issue jk I loved coding in python back in school shit was so easy for me but from what I learnt in school is that even if u are right not to question the teachers unless u wanna get on their bad side then it becomes hell
2023-03-20 21:23
12 replies
yeah its easy but shes literally the biggest hoe ever, i genuinely think i know more than her.
2023-03-20 21:22
11 replies
tbh you might do it's not abnormal unless it's at university. my friend was coding cheats and mods for games when he was 14 or smth
2023-03-20 21:23
3 replies
peep the code. its obvious i know everything we are doing right now and if she was to just give me an A, nobody would think its undeserved. i think there is genuinely a conspiracy against me.
2023-03-20 21:25
2 replies
lol fair play I feel like doing exams early would be a massive dub for us. I spent so much time doing fuck all in maths cos I knew everything in the course from the time I was 14 so I just wasted ny time. Got like 95% on each exam. Dropped 1 or 2 marks and that's it lol. Doing exams early and modules in advance should he way more common place imo
2023-03-20 21:30
1 reply
i agree to a certain extent but only in the case of this subject. i literally know everything we learn in informatics (this year it will be python, next year it will be excel and word) so i will waste the next 3 months wasting my time on these pointless exams. i honestly feel like she cant even understand my code so doesnt even bother looking at it. like she said nothing about it, only fixated on this one pointless thing which in her mind warranted a lower grade while.
2023-03-20 21:31
+1, that slut probably w a s jealous of your sapience
2023-03-20 21:24
#7
rod | 
Andorra esclafit
but she is in a power position and u are not i think this should be crystal clear but i wanted to make sure the point came across
2023-03-20 21:26
5 replies
she is an overall garbage human being even when ignoring all her antics in school. her husband used to be the principal of the school and there is a lot of nepotism and "corruption" and its a rabbit hole that goes way too deep.
2023-03-20 21:28
4 replies
just pass the subject and move on it's not like u are going out on a dinner with her
2023-03-20 21:33
1 reply
problem is she expected me twice to attend a programming competition for her and obviously both times i refused because of her behaviour. lucky for me i wont go into computer science so i wont have to deal with shit like this.
2023-03-20 21:35
Average Croatian school
2023-03-20 21:57
1 reply
they literally have competitions rigged for them to win so they get media exposure. same as organizing completely bogus events and projects that do nothing and help noone but it gets their names (by their i mean the teacher, her husband and daughter) into the press. literally all for personal gain.
2023-03-20 21:59
TL;DR lgtm but... The division function checks for division by zero but does not handle the case where the result is a non-integer (prob. the reason you received that grade). Changing the print statement to use a floating-point format would be more accurate. Some function names, such as invalid_choice() and invalid_range_array(), could be more descriptive, like is_choice_invalid() and has_out_of_range_numbers(). Some variable names, such as summed, subtracted, and multiplicitatated, could be simplified to be more consistent and easier to read, like sum_result, difference, and product. Comments are sparse and could be added for better understanding and maintainability. The indentation and spacing are mostly consistent, but there are a few inconsistencies that could be cleaned up.
2023-03-20 21:29
1 reply
#1 <- this is why i got it lowered. you cant even input a 0 because the inputted number should be in the range from 10 to 100. but on the paper with the problem we received (she didnt even make it), it says you are supposed to do it like this input number check if in range -> yes continue, no print "out of range" and exit program if first number in range, input second, check if in range -> yes, print "both numbers out of range" and exit program you can see how there is a bit of a hole in the logic here, it prints both are out of range if only second is out of range. i wanted to fix this while writing it in school by first inputting both of them and then deciding if they are out of range.
2023-03-20 21:34
can you bypass VAC with this ?
2023-03-20 21:33
1 reply
yes this python code blocks all vac modules from loading (it wont flag your account i promise)
2023-03-20 21:37
I used to code in python back in high school but I forgor all of it💀
2023-03-20 21:36
2 replies
it will be exactly the same situation for all of my classmates. but if there was someone who was genuinely interested in learning it, she would be absolutely the worst person to teach it.
2023-03-20 21:37
1 reply
I don't think any of my classmates that don't work in something computer related still know how to code
2023-03-20 21:41
This is all cool, but why do I now see enemies through walls after installing
2023-03-20 21:37
1 reply
press F2 it should disable it.
2023-03-20 21:38
#21
 | 
Russia 1_vs_9
She was in the right to give you a B. It's hard to say if it was fair without knowing how your peers have accomplished the task, but still. I have 3 main complaints: 1) You need to refactor the code. Why would you have in every arithmetic function the same block? I'm talking about numbers = get_array() if invalid_range_array(numbers) == True: return 2) Your code doesn't look clean. You can shorten it by a lot. 3) Why would you give user option to input 2 numbers separately and only then give the error if user had given a number out of range?
2023-03-20 21:39
3 replies
my classmates dont know jackshit and compared to them i am terry davis. literally, they are still troubled by the syntax. for the level we are supposed to be learning i am way too advanced. she knows it but doesnt care. all my classmates agree that my grade was undeserved. 1. completely agree with this. i want to move the range check into the get_array() function and then make each function take the numbers array as an argument so u just have to call the get_array() function once and pass to then whichever function. i just didnt do it in school. it was written under a time limit, not that deep. 2. it can be shortened but im used to c++ and in a c++ project id shove all those arithmetic functions into a header file or something and then the idea was to have a clean main function (which to some extent i do). 3. as i mentioned in #9, i wanted originally to have a custom error message if both were out of range (which i didnt end up implementing because i just figured it wouldnt be an issue, guess i was wrong).
2023-03-20 21:50
2 replies
#31
 | 
Russia 1_vs_9
Anyway, not a bad work (considering time constraints). I would advise you to read about which code is "Pythonic" and also try sometimes to write code as shorter as you can, and constructing complex one-liners. I'm not saying that this is optimal way to always code like that but it's a nice exercise and could lead you to some new knowledge. Also will help you with kickstarting a solution faster
2023-03-20 21:54
1 reply
i would try to improve but i decided on a completely different career path so i wont bother actively trying to learn. though often i feel like i sometimes overcomplicate things in python because i dont realize u can do it in a simpler way (as opposed to c++ in some situations). for example here is the only project worth looking at i made in c++ if you care enough to look at it. i am completely self-taught (which might be evident in the quality). github.com/matej0/maze-generator but all in all, thank you for your insight.
2023-03-20 21:55
ok
2023-03-20 21:39
you didn't use VIM
2023-03-20 21:41
3 replies
no i used idle
2023-03-20 21:47
2 replies
nah bro don't use that shii. You should be using VSCODE, trust me your developer experience will be 100x times better with autocomplete, pretty themes and lots of other stuff, but don't use github copilot, it will compromise your learning.
2023-03-21 16:27
1 reply
i use vscode at home already, this was made in school. though i have no interest in pursuing computer science as a career.
2023-03-21 17:09
izlaz sounds funny as fuck
2023-03-20 21:41
1 reply
it means exit xd
2023-03-20 21:47
Awfully long for such a simple task.
2023-03-20 21:50
1 reply
that is true. i couldve written it in 20 lines probably.
2023-03-20 21:51
Coding ♿️
2023-03-20 21:50
5 replies
Python coders can relate to ♿️
2023-03-20 21:55
3 replies
More like they are less ♿️ than coders on other langs
2023-03-20 21:58
1 reply
c++ gives me a hard on honeslty
2023-03-20 22:13
why python is bad?
2023-03-20 22:14
couldnt agree more, this is why im joining the army.
2023-03-20 21:56
she has a small penis and mad because of it
2023-03-20 22:03
1 reply
most likely the case.
2023-03-20 22:09
What are you exactly asking?
2023-03-20 22:29
5 replies
idk, peep the code if u know python and tell me what u think.
2023-03-20 22:44
4 replies
According to your explanation you just need to input 2 numbers and check if they are in the range. But in the code, I see some math operations. I don't know if you want to make a simple calculator or not?
2023-03-20 22:52
pastebin.com/9gZcHD1X something like this (while inputting) should give her what she wants. For me there are too many functions in your code. If she is really sure to give you something that silly, don't challenge, you won't get anything from it. Just give her the minimum. She doesn't deserve more.
2023-03-20 23:25
2 replies
i was supposed to do this ranged check on the numbers to be used in the arithmetic functions except the way i chose to do it is first input both then check if they are out of range so i could have a custom message when both are out of range. also idk if there is a fundamental difference in python syntax but couldnt you just return to exit out of the function instead of calling sys.exit? doesnt seem like a good practice to me.
2023-03-20 23:30
1 reply
Dude you sound like the smartass of the class. I am not the right one for you. I was the one who made fun of people like you and got C- in all the classes.
2023-03-20 23:42
#46
 | 
India quickzilla
Too smart for your own good. smh
2023-03-20 22:29
1 reply
i dont wanna say literally but yea literally
2023-03-20 22:44
Back when I took CS in highschool I have never gotten lucky with the teacher. It's always either someone who reads off a PowerPoint slide and knows jack shit about anything or some ego maniac who only thinks that they are correct and nothing else is valid. Sometimes you have to stomach this shit and not let it affect you, or if possible, talk to the teachers higher up and find a solution. After a while I just ignored the teacher and focused on the final exam, in the end it doesn't really matter as long as you achieved the grades.
2023-03-20 22:50
1 reply
unfortunately i think teachers that teach comp sci in high school are probably bottom of the barrel chumps who couldnt get a job anywhere else because of their ineptitude. anyone else passionate and knowledgeable about it found a better paying job or is teaching in college/uni.
2023-03-20 23:23
#54
 | 
Fiji Ape_Killer
U wanna code my python?
2023-03-20 23:34
bro really is trying to make sense of how his teacher grades assignments 💀
2023-03-20 23:53
Login or register to add your comment to the discussion.
Now playing
Thumbnail for stream
Brazil
gaules
6094 viewers
Top streams
All(19)
Casters(11)
Streamers(7)
Organizers(1)
Brazil
gaules
(6094)
Canada
jasonR
(1440)
United Kingdom
ESL TV
(1131)
United States
Cooper
(811)
United States
freakazoid
(697)
Brazil
Saullo
(689)
Canada
steel
(508)
Brazil
mch
(320)
Brazil
nahzinhaa
(304)
France
MGG
(297)
Brazil
danoco
(273)
United States
Take Flyte
(266)
United States
Floofys
(231)
Brazil
Jogando Junto
(197)
United States
Trucklover86
(173)
Other
Vikingz_Odin
(71)
Peru
DonCooki
(35)
Canada
DAVEY
(15)
Brazil
BTSBrasilFPS
(3)