MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/zbx4wu/i_desperately_need_help_it_keeps_saying_that_i/
r/codehs • u/[deleted] • Dec 04 '22
7 comments sorted by
1
Can you show the output plus the actual response from the website
2 u/[deleted] Dec 04 '22 I figured it out, I didn’t put a space after the comma so it counted it as wrong
2
I figured it out, I didn’t put a space after the comma so it counted it as wrong
It might be because i=1, maybe change it to 0. I could be wrong though.
1 u/[deleted] Dec 04 '22 edited Dec 04 '22 Yeah, still doesn’t work Edit: Figured it out though. There needed to be a space after the comma 2 u/Zestyclose_Banana102 Dec 04 '22 Codehs tends to be annoying like that, its very specific with things.
Yeah, still doesn’t work Edit: Figured it out though. There needed to be a space after the comma
2 u/Zestyclose_Banana102 Dec 04 '22 Codehs tends to be annoying like that, its very specific with things.
Codehs tends to be annoying like that, its very specific with things.
Idk if you still need the code for that but here:
for i in range(1,7):for j in range(1,7):print(str(i) + "," + str(j))
here is the answer
function start(){
for(var i = 1; i <= SIDES_ON_DICE; i++){
for(var a = 1; a <= 6; a++){
println(i + ", " + a)
}
1
u/Zacurnia_Tate Dec 04 '22
Can you show the output plus the actual response from the website
1
u/Zestyclose_Banana102 Dec 04 '22
It might be because i=1, maybe change it to 0. I could be wrong though.
1
u/Opposite-Umpire-7709 Dec 06 '22
Idk if you still need the code for that but here:
for i in range(1,7):
for j in range(1,7):
print(str(i) + "," + str(j))
1
u/Codehshelper Dec 06 '22
here is the answer
function start(){
for(var i = 1; i <= SIDES_ON_DICE; i++){
for(var a = 1; a <= 6; a++){
println(i + ", " + a)
}
}
}