r/code • • Nov 13 '25

Help Please I don’t understand this

Post image
0 Upvotes

My assignment is telling I got the indentation wrong on lines three and four, I just don’t understand? I just started out on coding, I’m struggling a bit


r/code • • Mar 30 '20

so funny !

Thumbnail
youtube.com
1 Upvotes

r/code • • Jan 06 '26

Help Please My return 0; is broken😭

Post image
0 Upvotes

r/code • • Oct 02 '25

Help Please Can anyone point out my mistake

Post image
8 Upvotes

Question: WAP to print reverse of the given number....


r/code • • Jul 31 '19

Halp pls! Does anyone know whats wrong with my code?

Post image
0 Upvotes

r/code • • Jan 06 '22

Help! I’m trying To Import this Animation to All players. Does anyone know what to do?

Thumbnail
gallery
1 Upvotes

r/code • • May 19 '22

Python Hopefully nobody at my local high school tries to steal this code for the class im taking

0 Upvotes

import random word = ["withdrawal", "compromise", "separation", "vegetarian", "artificial", "permission", "accountant", "investment", "assumption", "excitement"] secret_word = random.choice(word) guesses_left = 10 dashes = "-" * len(secret_word)

retrieves the user's guesses and checks for their validity

def get_guess(): while True: obtain_guess = input("Guess the letter: ") if obtain_guess.isupper(): print("the secret letter is lowercase") elif len(obtain_guess) > 1: print("the secret letter is only one character long") else: return obtain_guess

prints dashes based on the word's length and replaces dashes with user guesses

def update_dashes(word, dashes, guess): for i in range(len(word)): if word[i] == guess: dashes = dashes[:i] + guess + dashes[i+1:] return dashes ''' hello Mr.Hall its me Jeremy, if you see another student using this exact code they stole it from reddit, please give them a bad grade and thanks for being the best computer science teacher ever :) '''

main program which checks for the guesses' correctness

while guesses_left > 0: print(dashes) guess = get_guess() dashes = update_dashes(secret_word, dashes, guess) if guess in secret_word: print("Guess is in secret word") print(str(guesses_left) + " incorrect guesses remaining") else: guesses_left -= 1 print("Guess is not in secret word") print(str(guesses_left) + " incorrect guesses remaining")

the program that determines whether or not the user wins

if "-" in dashes and guesses_left == 0:
    print("You lose! The word was: " + secret_word)
    break
elif "-" not in dashes and guesses_left >= 0:
    print("You win! The word was: " + secret_word)
    break

r/code • • Apr 29 '22

Round 1: Which is the Best among all of them..

0 Upvotes
109 votes, Apr 30 '22
14 HTML
10 CSS
40 JavaScript
18 React
27 I can't decide now / results

r/code • • Dec 13 '21

I need help with JSON code

1 Upvotes

So I was try to do some JSON code and I got an error message and now I’m kinda stuck what should I do


r/code • • Jun 24 '22

What does this code do? It is for an NFT project.

Post image
0 Upvotes

r/code • • May 19 '25

Help Please Why doesn't this work😭

0 Upvotes

<!DOCTYPE html>

<html> <head> <style> button { background-color: black; color: white; } </style> <script> function generateNumber(max) { return Math.floor(Math.random() * max); } let numberGenerated = undefined document.getElementById("output").innerHTML = numberGenerated; </script> </head> <body> <button onclick=" numberGenerated = generateNumber(27); "> Generate </button> <p> your number is : <span id="output"></span> </p> </body> </html>

This is for a random number generator


r/code • • Oct 05 '20

Halp pls! why it's not working?

Post image
0 Upvotes

r/code • • Sep 03 '22

Help please! The connection to all codes is Pi(3.14159) Spoiler

Thumbnail
gallery
0 Upvotes

r/code • • Dec 28 '19

Help task

0 Upvotes

Does someone know a site or app that you could help others with their task?

I would like to do some python task to improve/practice.

Thanks


r/code • • May 27 '12

Programmer Jokes

Thumbnail
quickmeme.com
0 Upvotes

r/code • • Apr 10 '19

Somebody help me, what's wrong

Post image
0 Upvotes

r/code • • Jan 06 '25

Help Please Why won’t it work

Post image
1 Upvotes

I’ve tried this last year it made me quit trying to learn coding but I just got some inspiration and i can’t find anything online. Please help


r/code • • May 27 '21

In your opinion, what sucks about StackOverflow?

1 Upvotes

r/code • • Jun 09 '22

Break my historic family’s code!

Post image
2 Upvotes

r/code • • Oct 28 '21

Halp pls! Idk where else to go, anyone know how get past this

Post image
3 Upvotes

r/code • • Jun 08 '26

My Own Code GitHub - DemonCoderOffical/somesites: It is a html code cracker it get html codes

Thumbnail github.com
0 Upvotes

r/code • • Jun 03 '21

Urgent Code

0 Upvotes

Does anyone know how to write a code preferably in c++ to find the index of an element of a list where the sum of prime numbers on the right equal the left? If you do kindly help I'm still a newbie it would be highly appreciated


r/code • • May 28 '21

The coding language you use...

0 Upvotes
89 votes, May 31 '21
9 C
11 Java
18 C++
24 Python
26 Javascript
1 Rust / Golang

r/code • • Jun 16 '23

Help Please I need to create an Online CompIler of Java

0 Upvotes

So i really to create a Java Complier That Should Be Online Using Js , Please someone to help me m stuck so much and thank you very much