Ask coding questions

← Back to all posts
Hi, anything I can do to make it better?
Bookie0 (3284)

Thanks! Also I am a kind of beginner (well actually not quite a beginner). I know some stuff (enough to make a respectable code)

Thank you

Answered by malvoliothegood (709) [earned 5 cycles]
View Answer
malvoliothegood (709)

Because you are not getting any input from the user you can use the print function rather than a mix of input and print

Bookie0 (3284)

Hi @malvoliothegood, thanks for your comment. I decided to not do print so that the users could kind of reply to the code, I find that it kind of makes the code more “interactive” with the user.

Thanks again for trying my code!

Have a great day!

malvoliothegood (709)

I see. In that case if you are not using the value returned from input you do not need to store it in variables.

Bookie0 (3284)

Hey @malvoliothegood,

Thanks for your answer. I didn’t know that, so thank you very much for teaching me a new thing!

Have a fantastic day and than,s for trying my code!

Bookie0 (3284)

Hi @niorg2606, thanks so much for trying it. I added an option for people who aren’t ready.

Thanks again
Have a great day!