Return Last 50 posts

Python code.

1 Name: Anonymous 2020-07-17 01:07

I will pay someone to give me the python code to write this, its due today leave contact
2 Name: Anonymous 2020-07-17 04:51
3 Name: Anonymous 2020-07-17 07:03
I will pay
How much?
4 Name: Anonymous 2020-07-17 09:50
I’ll do it for $300/hr 4 hours minimum
5 Name: Anonymous 2020-07-17 12:37
well,2 times in a row ive made a post and it just randomly fucking sends me somewhere else.doesnt even post the god damn thing i posted
6 Name: Anonymous 2020-07-17 14:17
Ill give you $15 for deposit so you know im legit, then once I test what you give me and confirmed it works ill give you another 20
7 Name: Anonymous 2020-07-17 14:34
Yeah that happens. You’ll have to wait a day or two. No idea why.
8 Name: Anonymous 2020-07-17 14:51
are you really this garbage?

you've done at least a year of study at this point and you can't write a python program when you have the steps are clearly written out for you

the psuedocode and flowchart are 95% just copy pasting the bullet points in different formats

the python code isnt much harder

if you really have 0 idea how to do this you should probably redo the year
9 Name: Anonymous 2020-07-17 15:08
How about this but half off>>4
600 total
10 Name: Anonymous 2020-07-17 15:25
nigga i know ive barely been paying attention, just write it for me and you'll make a quick buck
11 Name: Anonymous 2020-07-17 15:42
How about pay attention in your studies to the easiest code on the planet?
12 Name: Anonymous 2020-07-17 15:58
jesus fucking christ how autistic do you need to be to not be able to code this after even just a month of compsci classes
13 Name: Anonymous 2020-07-17 16:15
14 Name: Anonymous 2020-07-17 16:32
15 Name: Anonymous 2020-07-17 17:39
Writing it now for interest.
16 Name: Anonymous 2020-07-17 19:36
ok lemme know, ill send you cashapp

whats your contact in case the thread dies
17 Name: Anonymous 2020-07-17 21:01
Jesus christ are people this shit these days.

It is simple

Declare variables
Declare functions

4 dice variables, player_roll_1 and player_roll_2, AI_roll_1 and AI_roll_2. And player_total and AI_total

Ask for input for a name, which will be a text/string value

Once asked for name, print out shit script about shoes

set both player roll values to 0

player_roll_1 = player_roll_1 + RND*6
Same for 2nd variable, show values, add them together

Do same for AI

Use an IF statement to check if the player is a higher score, same score, or lower. Post result.

Ask if you want to go again.

It's fucking easy, basic shit.

Going to be honest if this is the length you have got after 1 year, fucking quit.,
18 Name: Anonymous 2020-07-17 21:04
I wrote it in LISP for you, but unfortunately 4ct only lets me post the last 200 characters, but here you go:

19 Name: Anonymous 2020-07-17 21:07
its a 6 week course, i didnt pay attention

literally just write out the code so I can copy and paste and Ill send you 20 bucks
20 Name: Anonymous 2020-07-17 21:10
It happened to me too. I think it's some kind of man in the middle spambot.
21 Name: Anonymous 2020-07-17 21:12
$20 what the fuck can you buy for $20 these days?

Shit son, I don't know Python, but its the same procedure no matter what language is used. The same logic.

Guess the course was a mandatory one, it's your own fault for fucking up.

They wont be stupid, they will know you didn't pay attention and when you somehow produce a code listing for this, they will ask you what does this do, what does that do. And you will be sitting there like a deer in headlights.

I would feign sickness and in those couple of days off, learn the shit out of basic python and write it yourself.
22 Name: Anonymous 2020-07-17 21:15
I don't want your money anon. Just get your head back in the game. I know shit sucks, I pretty much dropped out myself. Just figure out where your passion is and work on that. If this isn't for you, get out.

Here's a basic mockup, should work fine. Any pseudocode and flowcharts should be easy as hell and take you 10 minutes like someone above said kinda just restating all the existing information in different words.
23 Name: Anonymous 2020-07-17 21:18
# It does dice things #

import time
import random

print ("This is a game of dice. Challenge your odds.")
time.sleep (0.5)
print ("What's your name?")
name = input (": ")
print ("Hello {}!".format (name))

min = 1
max = 6

print ("Would you like to play?")
playrequest = input (": ")
while playrequest in ["Yes", "yes", "Y", "y"]:
time.sleep (0.5)
a = random.randint (min, max)
b = random.randint (min, max)
c = (a + b)
time.sleep (0.5)
print ("Rolling two dice, your values are {} and {} for a total of {}".format (a, b, c))

time.sleep (1)
print ("The computer will now roll against you.")
d = random.randint (min, max)
e = random.randint (min, max)
f = (d + e)
time.sleep (1)
print ("The computer has rolled two dice with values {} and {} for a total of {}".format (d, e, f))

time.sleep (1)
if c > f:
print ("You have rolled higher and won.")
elif f > c:
print ("The computer has rolled higher, you lost.")
elif c == f:
print ("You have tied with the computer.")

time.sleep (1)
print ("Care to go again?")
playrequest = input (": ")
24 Name: Anonymous 2020-07-17 21:21
25 Name: Anonymous 2020-07-17 21:25
Fucking five star post right here.
26 Name: Anonymous 2020-07-17 21:28
ok nvm thank you, give me 5 min ill tell you if the whole thing works
27 Name: Anonymous 2020-07-17 21:31
So to confirm your indentation issue in the previous post was from a poorly formatted version before my last attempt?
28 Name: Anonymous 2020-07-17 21:37
You literally don't even understand Python indentation?
Drop out, faggot. You deserve nothing more.
29 Name: Anonymous 2020-07-17 21:41
yeah, the only problem it has now is I have to put "Yes" or "Y" like strings, if i just type Yes or Y it does nothing, overall it works though, thank you
30 Name: Anonymous 2020-07-17 21:43
Sorry I'm not entire sure what you're saying, I put four variations of the word yes in an array, and any of those four should run the loop, anything else should just exit the program. Can you show me another screenshot of that issue and explain it differently?
31 Name: Anonymous 2020-07-17 21:45
shit. i dont even know python and am pretty sure i can code this shit by just looking up python cheat sheets. you're a fucking failure anon. holy shit. end it now.
32 Name: Anonymous 2020-07-17 21:47
So I have to put the inputs in a string for a response, and then it freezes at the end for some reason when I put "Yes"
33 Name: Anonymous 2020-07-17 21:48
you're retarded
34 Name: Anonymous 2020-07-17 21:49
35 Name: Anonymous 2020-07-17 21:52
Fuck you, asshole. You are what's wrong with the world. Now this fucking retard with a shit, entitled attitude who literally yells at people on 4ct in all caps demanding services is one step closer to a certificate which he doesn't deserve and knows nothing about.

As a legitimate engineer who often needs to fix the bullshit of shitheads like this in the professional world, I literally wish death upon you. Go fuck yourself.
36 Name: Anonymous 2020-07-17 21:54
Are.... are you not putting in the words by themselves without the quotes?
37 Name: Anonymous 2020-07-17 21:58
When I put them without the quotes nothing happens, that's what im saying
38 Name: Anonymous 2020-07-17 21:59
39 Name: Anonymous 2020-07-17 22:01
Fuck off faggot I even offered to pay, im not entitled just desperate
40 Name: Anonymous 2020-07-17 22:04
Thats the easiest shit ever, even a retarded 6 yo could do this. Why havent you killed yourself yet?
41 Name: Anonymous 2020-07-17 22:09
Mechanical engineering is the best engineering.
You’re right about your post too.
42 Name: Anonymous 2020-07-17 22:11
Btw OP, were you sleeping during your classes? For fucks sake someone with no experience could figure this shit out in a day with just youtube videos.
43 Name: Anonymous 2020-07-17 22:32
You only indented the first line under the while loop header

You've gotta indent the entire thing

Pay attention in class; unlike most of the other dumb shit they regurgitate in universities nowadays, this shit is actually really important
44 Name: Anonymous 2020-07-17 22:37
You're desperate because you're a piece of shit who didn't fucking bother to learn anything in your class, by your own admission of simply not paying attention.
Now you're cheating your way out the other side. Suck my fucking cock and die when you choke on the cumshot, you piece of human trash.
45 Name: Anonymous 2020-07-17 22:40
I fixed the indents but this is what im talking about
46 Name: Anonymous 2020-07-17 22:43
does the same thing even after I fixed the indents in this screenshot
47 Name: Anonymous 2020-07-17 22:45
take a close look at this
just look at it for until you understand
48 Name: Anonymous 2020-07-17 22:52
I fixed the indents but this is what im talking about
you changed the first fucking print
49 Name: Anonymous 2020-07-17 22:58
You didn't fix the indentation

The code is saying "While your answer is one of these four variations of "yes," (which it is), continue to execute the line "time.sleep(0.5)."

You have to indent every other line of code underneath the while loop

2 indentations for the line(s) immediately under if statement headers

Please, do try to pay more attention from now on. I get that with most classes being online (if you're an Amerifat), it's fucking hard. But make a damn effort. This is the kind of shit that'll make or break your future if you're going down the tech route. I'm 110% sincere when I say that.
50 Name: Anonymous 2020-07-17 23:00
Here's the quick and easy. Indent EVERY SINGLE LINE under the while loop.
51 Name: Anonymous 2020-07-17 23:02
this is easy as shit dude come on
52 Name: Anonymous 2020-07-17 23:07
How 'bout you fucks stop helping this loser cheat?
53 Name: Anonymous 2020-07-17 23:09
now it says 'c' not defined
54 Name: Anonymous 2020-07-17 23:12
I take it the time.sleep operand is a wait statement, ask me shit in ASM, Pascal, Cobol, Comol, C, VB and I am cool, but I never got into Python or Ruby, just didn't see the point to it.
55 Name: Anonymous 2020-07-17 23:15
indent every line under the while loop
every line
56 Name: Anonymous 2020-07-17 23:19
Yes friend that is correct. It's slightly homosexual but it works.
For one, I can't even see the top half so I can't see how you handled the c declaration. Second, you still look unindented. Probably just borked once it hit that while loop lol.
This friend.
57 Name: Anonymous 2020-07-17 23:22
import random
import time
player_name = input("Please enter your name: ")
print(f"{player_name} By entering your name you agreed to your fate - there is NO turning back\n")

def generate_roll(min_val: int=1, max_val: int=12) -> int:
return random.randrange(min_val, max_val)

playing = True
while playing:
print(f"{player_name} Roll those dice!")
print(f"{player_name} Yells 'I'm A LAZY NIGGER' and rolls the dice.")
player_roll_1 = generate_roll()
player_roll_2 = generate_roll()
player_total = player_roll_1 + player_roll_2

print(f"Your rolls are {player_roll_1} and {player_roll_1}, for a total of {player_total}")

print(f"Computer rolls those dice!")
computer_roll_1 = generate_roll()
computer_roll_2 = generate_roll()
computer_total = computer_roll_1 + computer_roll_2

print(f"Computer rolls are {computer_roll_1} and {computer_roll_2}, for a total of {computer_total}")

if player_total > computer_total:
print(f"{player_name} wins!")
elif player_total < computer_total:
print(f"Computer wins!")
print("TIED, everyone wins!")

while response:=input("Would you like to keep playing? [Y/N]: "):
if response == "Y":
elif response == "N":
playing = False
print("Invalid input.")
58 Name: Anonymous 2020-07-17 23:26
ok fuck I got it now, it works thank you.

i pretty much didn't study at all during this course, so im gonna actually study when im finished with this
59 Name: Anonymous 2020-07-17 23:33
I never learned python, and it has been 20 years since I had C++, but I am sure that I could have figured out how to do this in the time that this thread has existed.
60 Name: Anonymous 2020-07-17 23:42
heres a paste bin with indentation that works

hope u get a promotion lmfao
61 Name: Anonymous 2020-07-17 23:43
here ill even indent it for you

pastebin -> zDKT73dC
62 Name: Anonymous 2020-07-17 23:45
i didnt study at all
swear i'll do better tomorrow!
63 Name: Anonymous 2020-07-17 23:49
Anon hands in listing
"WOW Anon this is great"
"Now make a bank payment system for us, we will give you 2 months"
*insert massive begging of the 4th kind on /prog/*

64 Name: Anonymous 2020-07-17 23:53
65 Name: Anonymous 2020-07-18 00:03
Doesn't matter if he's being honest or not

Affects him and only him

Lie at your own expense
66 Name: Anonymous 2020-07-18 00:19
Holy Mother of Jesus, this thread is a fucking riot. OP is a beggar nigger, /prog/ tells him to get a fucking job, some good (((samaritan))) gives him his code provided OP studies, OP demonstrates complete noggatry with indentation, the good (((samaritan))) tries to surgically extract OP's head from his rectum, OP refuses to do so, /prog/ bitches the entire process.
I took a first-semester intro to python course, and I don't remember any of it except that ifs and stuff need every relevant line tabbed one space. That's literally the one thing I remember and OP can't do it.
67 Name: Anonymous 2020-07-18 00:26
No, it also affects those of us who have to fix his shit in the workplace later.
68 Name: Anonymous 2020-07-18 00:45
you deleted a space nigger
69 Name: Anonymous 2020-07-18 01:58
Hi, (((samaratin))) here. I straight shat myself laughing at this read through. Thanks. Have a good day friend.
70 Name: Anonymous 2020-07-18 02:40
Hey OP, what class is this? Please link your professor’s email. Thanks.
71 Name: Anonymous 2020-07-18 03:31
Hey, you're welcome. It's guys like you that make /prog/ worth anything ever since the tinyification.
Are you a regular here? I only come here once in a blue moon because this board is just empty and soulless now.
72 Name: Anonymous 2020-07-18 04:05
Sadly, long time lurker, infrequent poster. Pretty much agree with you on how soulless it is, I end up fast flicking through looking for anything worth opening and all threads are garbage most of the time. Occasionally one or two worth browsing. You'll find other boards are more fruitful. I'm actually surprised I even found this glorified homework thread on /bijou/ not /lounge/. But ayyyy.
73 Name: Anonymous 2020-07-18 04:39
Hey OP. Please watch this:

It’s python basics.
74 Name: Anonymous 2020-07-18 05:29
i didnt do anything i just pasted what you wrote
75 Name: Anonymous 2020-07-18 06:20
So isn’t this job security for you? If your competition are brainless fools you should be able to ask for higher payment for your services
76 Name: Anonymous 2020-07-18 06:54
I’d say /prog/ with shitthreads banned would be good, but that’s /newpol/ and /bijou/ is dead.
At least if trips came back game of /lounge/rs could come back but that’ll never happen.
77 Name: Anonymous 2020-07-18 07:44
Dickfinger, my guy. I gave you a fully working one that, at your claim, was fixed, given that the only issue was literally you not indenting it. Come now friend, I believe in you.
78 Name: Anonymous 2020-07-18 08:18
OP you still here?
79 Name: Anonymous 2020-07-18 09:08
Samaratin here. Cloudflare had an outage sooooooooooo RIP 4ct.
80 Name: Anonymous 2020-07-18 09:44
Trust me.. do it..

Return Last 50 posts
Leave this field blank: