Comment on: Are there any working Python YouTube APIs for downloading videos?
0 23 Sep 2019 15:22 u/carlip in v/programmingComment on: Some people don't belong in this industry.
I only do hobby programming so I have never had to work with others. Sounds like a shitty time. Better just to start over fresh if you have the time.
Comment on: Microsoft Windows Subsystem for Linux 2 goes fast and has a new terminal
If I wanted to run a Linux VM I would use VMware. HyperV is dogshit
Comment on: For all you REAL developers, bacon mockup. Need a placeholder image? Why not bacon?
Bacon ipsum. That's halalious
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I'm not what dependency normalize() is from but you should an if statement before that in the hotness function to the effect of
If this.skin='black'
Hotness=this.hotness-10
Comment on: Is C# a low-level language?
>4 day old account
>knows everything about technology
>constantly, completely wrong
Comment on: Is C# a low-level language?
Also not true. Why do you enjoy being so wrong so often?
Comment on: Is C# a low-level language?
so you're just wasting CCP
wtf are you talking about? downvoting you doesn't incur any penalty against me. clearly you belong back at your home
Comment on: Is C# a low-level language?
Yes i just told you that i did this after you already accused me of it. Get fucked you lazy nigger.
Comment on: Is C# a low-level language?
it wasn't me, but im going to now since you're accusing me of it anyway
Comment on: Is C# a low-level language?
no its uses a compiler to send instructions to the CPU
Comment on: Google Says Spectre And Meltdown Are Too Difficult To Fix [With Software]
i was under the impression its a microcode issue, so anything kernel or higher isn't going to be able to do much
Comment on: Who says girls can't code?
why go through the trouble of writing Calibri for the paragraph class if you're just going to use the an in-line style call for sansserif... ON EVERY FUCKING LINE
Comment on: Core Debian developer summarily banned from project for referring to a transgender person with a non-approved pronoun
dont you see the irony here? he knows how to code, but they want to force him to be a SJW faggot. And the SJW faggots will now be forced to code!
Comment on: Of course, I never do this...
@Dfens is a censorous communistic moderator. this user should be quarantined away from the rest of us who enjoy free speech.
Comment on: NPC Programming
Import groupChant
If NPC.followAlong == true
Print("Hey, hey, ho ho,"&smearTarget&" has got to go!")
Elif
Do until noticed(socialMedia)>=10
Cry
Comment on: Work as a C++ programmer
from what i've always understood when they hire on a new person, depending on the product, the recruit will spend 3-6 months just learning the structure. i dont think they will really expect too much even in your first month. just keep your ears open.
Comment on: Forcing women into programming is a fucking mistake
she's also calling a class that isn't defined. where is 'isUgly' defined?
Comment on: Can anyone help me understand Python functions?
def determineGrade(letGrade):
score=letGrade
if score >=90:
return 'A'
elif score >=80:
return 'B'
elif score >=70:
return 'C'
elif score >=60:
return 'D'
else:
return 'F'
def avgGrade(grade1,grade2,grade3,grade4,grade5):
avg=(grade1+grade2+grade3+grade4+grade5)/5
return avg
def printOut(grade1,grade2,grade3,grade4,grade5):
avg=avgGrade(grade1,grade2,grade3,grade4,grade5)
print()
print('Score\tGrade\tLetter Grade')
print('----------------------------')
print(' 1:\t',grade1,'\t ',determineGrade(grade1),'\n'+\
' 2:\t',grade2,'\t ',determineGrade(grade2),'\n'+\
' 3:\t',grade3,'\t ',determineGrade(grade3),'\n'+\
' 4:\t',grade4,'\t ',determineGrade(grade4),'\n'+\
' 5:\t',grade5,'\t ',determineGrade(grade5))
print('----------------------------')
print('Average Score:',avgGrade(grade1,grade2,grade3,grade4,grade5),'\t',\
determineGrade(avg))
def askGrade():
grade1=float(input('Score 1: '))
grade2=float(input('Score 2: '))
grade3=float(input('Score 3: '))
grade4=float(input('Score 4: '))
grade5=float(input('Score 5: '))
return grade1,grade2,grade3,grade4,grade5
def main():
grade1,grade2,grade3,grade4,grade5=askGrade()
printOut(grade1,grade2,grade3,grade4,grade5)
main()
OUTPUT
>>>
====== RESTART fasdasd.py ======
Score 1: 84
Score 2: 93
Score 3: 97
Score 4: 88
Score 5: 79
Score Grade Letter Grade
1: 84.0 B
2: 93.0 A
3: 97.0 A
4: 88.0 B
5: 79.0 C
Average Score: 88.2 B
>>>
apparently i was passing the variables to the wrong places, all fucking day...
Comment on: Can anyone help me understand Python functions?
def calcAverage(score1, score2, score3, score4, score5):
pass
def determineGrade(score):
if score >=90:
return 'A'
elif score >= 80:
return 'B'
elif score >= 70:
return 'C'
elif score >=60:
return 'D'
else:
return 'F'
def main():
loopCount=0
while loopCount !=5:
grade=int(input('Enter Score: '))
print(determineGrade(grade))
loopCount+=1
main()
I have to get 5 inputs as "test scores", then assign a letter grade A-F as well as print the average score and letter grade. All of this has to be formatted into a chart, which i already have worked that out, i just dont get the back end stuff.
Comment on: Can anyone help me understand Python functions?
i've never gotten too indepth into any particular language.
What i mean is that i have some variables that i have to do 2 things with, the requirement is that i use 2 separate functions and returns, but i am having trouble splitting the data then reassembling it correctly.
Can anyone help me understand Python functions?
1 1 comment 23 Feb 2018 21:58 u/carlip (self.programming) in v/programmingComment on: Today's date is 100/1000/10000 in binary
I mean verbally how would you reply, type that response out.
Comment on: Today's date is 100/1000/10000 in binary
What exactly would you say if it asked you today's full date, written out completely?
there is an autohotkey script that works really well