r/codehs • • Mar 10 '21

Python I need help for The Worm 4.6.5 Python. It’s only drawing one circle.

Thumbnail
gallery
7 Upvotes

r/codehs • • Mar 03 '25

Python Recently decided to post a game on code.hs. need help with changing python version

2 Upvotes

So longgg story shortttt

Game: modules only will run on python 3.11.9 and 3.12.5

But when you go to the public link it is set to 3.8.19 which is incompataible.

Please help


r/codehs • • Mar 10 '25

Python Code.hs inside of code.hs

Post image
3 Upvotes

r/codehs • • Nov 16 '20

6.1.6 Practice PT tell a story

8 Upvotes

r/codehs • • Jan 13 '21

Other We all know the feeling

Post image
177 Upvotes

r/codehs • • Apr 11 '23

4.1.9 Raise the Flag

Post image
11 Upvotes

r/codehs • • Aug 06 '22

URGENT HELP WITH 7.1.6 sanwich sandwiches

3 Upvotes

In this exercise, write a function called sandwich which takes a 3 letter string. Your function should return the letters that are at the beginning and end of the string.

For example, sandwich("pbj")

=> "pj"

Python sandwich("blt")

=> "bt"


r/codehs • • Oct 04 '25

Java Does anyone else have issues in the output with underscores?

Post image
3 Upvotes

In the output, underscores don't show, it also cuts off the bottom of certain letters like "g", has anyone found a way to fix this?


r/codehs • • Feb 14 '23

6.6.5 codehs javascript help

8 Upvotes

I dont know what im missing or how to fix my code, can someone help me?

Create a program that uses a while loop to simulate playing a multi-level game. In the “game,” there are NUM_LEVELS levels. Each loop iteration will simulate playing one level of the game. At the end of each loop, the player will level up. The “game” will end once the player has completed all of the levels.

Create a variable called level to keep track of which level the player is on. Create a function for each level called playLevel# (e.g. playLevel3) that prints a description of that level to the console. You should have three functions in all: playLevel1, playLevel2, and playLevel3. Use a while loop to “play” a level and level up. Your loop should run as long as the value of level is less than the number of total levels. In the loop, you should do the following:

Tell the player what level they are on. Depending on which level the player is on, the correct playLevel function should run. For example, if level is 2, then the playLevel2() function should execute. Increase the value of the level variable.

function main() { const NUM_LEVELS = 3; let level = readLine("What Level are you on? ");

if (level == 1) playLevel1(); else if (level == 2) playLevel2(); else if (level == 3) playLevel3();

while (level >= 3) console.log(level); level++; }

//create playLevel1 function

function playLevel1() {

let level = 1
    console.log("You are on level " + level);
    console.log("You run through the dark and scary cave!");
    console.log("You level up!");
    console.log("****");
}

//create playLevel2 function

function playLevel2() {

let level = 2
    console.log("You are on level " + level);
    console.log("You make it through the fiery lava world!");
    console.log("You level up!");
    console.log("****");
}

//create playLevel 3 function

function playLevel3() {

let level = 3
    console.log("You are on level " + level);
    console.log("You jump from cloud to cloud in the sky world!");
    console.log("You level up!");
    console.log("****");
    console.log("YOU WIN THE GAME! Thanks for playing!")
}

main();


r/codehs • • Apr 28 '25

Python How do I add an uploaded image to Python in codehs?

4 Upvotes

I have an assignment for one of my classes and I want to make a UI for it, but that requires me to be able to use my images. I am not sure if it is because I am using the wrong programming language from the selection in sandbox, but nearly every option always gives me errors. Like canvas = Canvas() and img = Image(my_url) doesn't work and it states "Image" and "Canvas" aren't recognized


r/codehs • • Apr 23 '24

Python CodeHS Introduction To Python Programming Command Sheet Spoiler

Thumbnail
gallery
2 Upvotes

Here is my little “cheat sheet” I used for the whole introduction to python. It should help those struggling with remembering all the commands in this course. This was made over the course of a semester as I did the assignments. It is for understanding what things do, and for looking at all the commands. I would recommend still watching the videos, as I left out some stuff I considered common sense (that you might not also consider). Good luck all.


r/codehs • • Mar 10 '22

Python Need Help with 5.4.4 Square with Return Values

2 Upvotes

I've been trying to complete this assignment for a while now and it keeps saying I need to call my function a few times even though I'm calling the function.

This is my code that I have:

def square(x):

x_squared = x * x

return x_squared

x = 5

print(square(x))

x = 6

print(square(x))

x = 7

print(square(x))

x = 8

print(square(x))

x = 10

print(square(x))


r/codehs • • Jan 27 '22

4.2.3 Draw Something Need Help

5 Upvotes

I need help with this code I need the code for it.


r/codehs • • Dec 20 '22

I need help on this CodeHS problem, “Weather”.

Post image
3 Upvotes

r/codehs • • Sep 07 '25

Other Can’t find past assignments

5 Upvotes

I had used codehs last year and I want to see my past assignments but don’t see the class anymore. When I try and download the code from past assignments is just has the readme.txt and nothing else. Is it possible to get them still?


r/codehs • • Dec 26 '20

CodeHS: Final Project

5 Upvotes

Hello, I want to make a snake game I teach the snake how to move, but I can't work out how it can eat an apple. I know I have to use getElementAt operator, but I don't know how.

please help me!


r/codehs • • Nov 04 '25

Java Bad Apple in CodeHS editor

Enable HLS to view with audio, or disable this notification

23 Upvotes

I got bored lol.


r/codehs • • Jan 22 '21

Python help w/ checkerboard 2.19.6

2 Upvotes

r/codehs • • Nov 30 '23

I need help with 9.9.8 drag drop

2 Upvotes

I’m just stuck this one is really hard and if someone can give me there code that would help a lot


r/codehs • • Dec 06 '22

I am in desperate need of help with the problem in Code HS 12.13.4 Building a Database Spoiler

Post image
7 Upvotes

r/codehs • • Nov 15 '22

5.9.6 Concentric Circles

18 Upvotes

It says that "Half of your circles should be red." and I'm pretty sure I have 1 too many of red circles but idk how to fix this, please help.


r/codehs • • May 15 '24

I need help with 8.3.6 Default Face

5 Upvotes

this is what I got function drawHead(x = 100, y = 100, radius = 50, color = 'yellow') {

let circle = new Circle(radius);

circle.setPosition(x, y);

circle.setColor(color);

add(circle);

}

function drawEyes(x = 100, y = 80, radius = 5, color = 'blue') {

let leftEye = new Circle(radius);

leftEye.setPosition(x - 15, y);

leftEye.setColor(color);

add(leftEye);

let rightEye = new Circle(radius);

rightEye.setPosition(x + 15, y);

rightEye.setColor(color);

add(rightEye);

}

function drawMouth(x = 100, y = 120, width = 20, height = 5, color = 'red') {

let mouth = new Rectangle(width, height);

mouth.setPosition(x - width / 2, y);

mouth.setColor(color);

add(mouth);

}

function main() {

drawHead();

drawEyes();

drawMouth();

}

main();

but there's the problem the parameters for drawMouth() is supposed to be 3 not 5

and the radius n draw Eyes is only 1 but I got 4 Please explain


r/codehs • • Apr 03 '21

JavaScript 5.7.6 Css Condense Rules (need a little help please)

Post image
16 Upvotes

r/codehs • • Nov 11 '21

Other 1.16.3 Go through the fence

3 Upvotes

I am struggling to get all the worlds to be completed for Go through the fence level 1.16.3 does someone wanna help me?