Return Entire thread Last 50 posts

Python code.

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
>>30
https://i.imgur.com/K9j8elT.png
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
>>32
you're retarded
34 Name: Anonymous 2020-07-17 21:49
>>33
lmao
35 Name: Anonymous 2020-07-17 21:52
>>23
>>22
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
>>32
Are.... are you not putting in the words by themselves without the quotes?
37 Name: Anonymous 2020-07-17 21:58
>>36
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
>>35
Fuck off faggot I even offered to pay, im not entitled just desperate
40 Name: Anonymous 2020-07-17 22:04
>>1
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
>>35
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
>>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
>>39
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
>>43
>>36
https://i.imgur.com/UVnM1pq.png
I fixed the indents but this is what im talking about
46 Name: Anonymous 2020-07-17 22:43
>>45
does the same thing even after I fixed the indents in this screenshot
47 Name: Anonymous 2020-07-17 22:45
>>45
https://i.imgur.com/Rso8ghK.png
take a close look at this
just look at it for until you understand
48 Name: Anonymous 2020-07-17 22:52
>>45
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
>>45
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
>>45
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
>>50
>>49
>>43
How 'bout you fucks stop helping this loser cheat?
53 Name: Anonymous 2020-07-17 23:09
>>49
>>50
https://i.imgur.com/5NuIcy4.png
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
>>53
indent every line under the while loop
every line
EVERY LINE
56 Name: Anonymous 2020-07-17 23:19
>>54
Yes friend that is correct. It's slightly homosexual but it works.
>>53
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.
>>55
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.")
time.sleep(1)
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}")
time.sleep(1)

print(f"Computer rolls those dice!")
time.sleep(1)
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!")
else:
print("TIED, everyone wins!")

while response:=input("Would you like to keep playing? [Y/N]: "):
if response == "Y":
break
elif response == "N":
playing = False
break
else:
print("Invalid input.")
58 Name: Anonymous 2020-07-17 23:26
>>55
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
suF6CnTJ

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
>>58
i didnt study at all
swear i'll do better tomorrow!
lol
63 Name: Anonymous 2020-07-17 23:49
>>60
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/*

SSDD
64 Name: Anonymous 2020-07-17 23:53
65 Name: Anonymous 2020-07-18 00:03
>>58
>>62
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
>>1
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
>>65
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
>>64
you deleted a space nigger
69 Name: Anonymous 2020-07-18 01:58
>>66
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
>>69
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
>>71
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: https://leancoding.co/watch.php?id=S3M63D

It’s python basics.
74 Name: Anonymous 2020-07-18 05:29
>>68
where
i didnt do anything i just pasted what you wrote
75 Name: Anonymous 2020-07-18 06:20
>>35
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
>>71
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
>>74
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
>>78
Samaratin here. Cloudflare had an outage sooooooooooo RIP 4ct.
80 Name: Anonymous 2020-07-18 09:44
Trust me.. do it..

Return Entire thread Last 50 posts
Name:
Leave this field blank: