Rate my code

Rate my code

Attached: my_beauty.png (1978x287, 28K)

Other urls found in this thread:

contributor-covenant.org)
twitter.com/NSFWRedditGif

It's in Python btw and I'm just starting out and I managed to use modulo that makes even pajeets jealous

>it's in python
disagree

>It's in Python

Attached: old pepe.png (275x266, 87K)

Not C/C++ out of 10

On the off chance you aren't baiting: you do realize that this program doesn't work, right? For hours ≤ 40 it'll try to print an unintialized variable (grosspay)

Shit you're right. Ah well I'm still a newb however

input("Enter Hours:")
input("Enter Hourly Rate:")
print("498.75")

with the testing op did, could've submitted this
input("Enter Hours:")
input("Enter Hourly Rate:")
print("498.75")

I've never coded in Python, but couldn't you just nest those functions like: hrs = float( input("Enter Hours:") )
Or at least do something like: hrs = float(hrs)

Attached: Screenshot_20180920-034814.png (720x370, 66K)

Hello Gerold Penz

It's a screenshot from 99-bottles-of-beer.

Attached: Screenshot_20180901-231811.png (1193x1891, 419K)

OP here I don't think you can

curry/10, it good buddy.

Attached: peer1.jpg (400x400, 19K)

In your code, 41 hours is the same pay as 81 hours.

Sucks. What if someone works less than 40 hrs. Code wont print.

>Learning python as a starting language.

I hope you like working with women and purple hair transvestites for the rest of your life

Try it. Also, use snek case to name variables if you're using python.

came to post this
I'm pretty sure you can, but the way you're doing it is better overall.

>no one has spotted it yet
You're supposed to subtract 40 not modulo 40 because what happens when modulo 40 reaches 80? Sanjay/10

Attached: 1536348406835.jpg (599x834, 82K)

But Jow Forums used to be all over Python, what happened?

>implying that user has even touched a terminal or compiler in their life

>not transgender enough
2/10

10/10

Where's the diversity? Reported for not accepting women into STEM

>the same guy again
i thought you said you'd stop these threads

Great for a beginner

You googled that result fag

OK, now this is epic

Shit. Heres less shit
hrs = int(input('How many hours did you work? '))
pay = int(input('What is your hourly wage? '))
if hrs

Why int?

Idk. I suppose float would be better

Not enough AbstractFactoryManagers/10

>doesn't pay the employees at all unless they work overtime

Very kosher software you got there rabbi

Aside from the obvious bug mentioned already, your variable names are shit.

To start with, say 'hours' not hrs.
And invert to say hourlyRateString, so you can use a nicer variable name when you actually do the computation, instead of floatRate.

The modulo thing is retarded. Just do hours - 40.

transphobic/10, i don't see a CoC.

Hi
great project!! I have one observation and a suggestion. I noticed you have rejected some pull requests to add some good django libraries and that the people submitting those pull requests are POCs (People of Colour). As a suggestion I recommend adopting the Contributor Code of Conduct (contributor-covenant.org) to ensure everybody's contributions are accepted regarless of their sex, sexual orientation, skin color, religion, height, place of origin, etc, etc, etc. As a white straight male and lead of this trending repository, your adoption of this Code of Conduct will send a loud and clear message that inclusion is a primary objective of the Django community and of the software development community in general. D.

If someone works less then 40 hours, their pay will be reduced sure to negative overtime payment
ex, 20h for $10: 20*10 + ((20-40)*15) = 200 + (- 300) = -100
Thanks for working 20 hours, you now owe me hundred bucks.

Do you not know how an if-else works you fucking retard?

>Still using if-else control flow.
How does it feel to be this out of touch with the future?

Attached: anti-if-logo.png (500x90, 4K)

good

The only time you use camel case is when working with an Object's methods and properties. so as to distinguish it from normal functions & variables.

Also, you failed..

So if you work less than 40 hours you don't get paid at all?

Attached: 1531717331527.png (386x500, 260K)

Capitalism! /s

You joke, but places like Amazon (warehouse) actually do this

It's important to at least know python, retard.

Yeah you can and op is retarded

>purposely misreading his code to make a stupid fucking point
shoot yourself asap, nigger

How would I? There's no if-statement to check whether I'm actually holding a gun.

could you describe to me what the inside of a vagina feels like, in detail?

Weirdly enough, it feels EXACTLY like my hand. But then I think that you would agree if told you that I'm a huge fucking cunt.

>modulo
Also you're docked 40 hours of overtime if you manage to exceed 80 hours per week.

fuck you man, i need for my NAO

Based Python poster.

>work 80 hours
>"can't wait to get that sweet overtime pay"
>just get regular pay, no overtime
You're getting sued and you deserve it.

Why? Why fucking comment when you’ve clearly never coded a day in your life? Why are you in this thread at all?

What the fuck are you even talking about you absolute goombah

Good job OP, no problem at all. Totally not like I'm actively preventing competition at all.

How insecure are you?