MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/1gsbzsv/what_am_i_doing_wrong/
r/codehs • u/Frequent-State-603 • Nov 16 '24
9 comments sorted by
2
The instructions look like you're supposed to return the value and print the reformed value.
You're currently printing the calculated value from inside the method
1 u/Frequent-State-603 Nov 16 '24 Oh ok thank you❤️
1
Oh ok thank you❤️
Btw we are using the Python coding program
Shouldn't the **3 CUBE the number and not just multiply by 3?
If not, why not?
2 u/rokinaxtreme Nov 21 '24 True, it should bedef triple(number): return number*3 1 u/rokinaxtreme Nov 21 '24 Wait mb this is python, I'm about to getERROR!Traceback (most recent call):File "<idk.py>", line 2return number*3^^^^IndentationError: expected an indent after function definition on line 1.Yes, I memorized the stupid python error code after seeing it SO MANY TIMES
True, it should be
def triple(number): return number*3
1 u/rokinaxtreme Nov 21 '24 Wait mb this is python, I'm about to getERROR!Traceback (most recent call):File "<idk.py>", line 2return number*3^^^^IndentationError: expected an indent after function definition on line 1.Yes, I memorized the stupid python error code after seeing it SO MANY TIMES
Wait mb this is python, I'm about to get
ERROR!
Traceback (most recent call):
File "<idk.py>", line 2
return number*3
^^^^
IndentationError: expected an indent after function definition on line 1.
Yes, I memorized the stupid python error code after seeing it SO MANY TIMES
2
u/5oco Nov 16 '24
The instructions look like you're supposed to return the value and print the reformed value.
You're currently printing the calculated value from inside the method
1
u/Frequent-State-603 Nov 16 '24
Btw we are using the Python coding program
1
u/TriWorkTA Nov 18 '24
Shouldn't the **3 CUBE the number and not just multiply by 3?
If not, why not?