Ask coding questions

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

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 (486) [earned 5 cycles]
View Answer
Commentshotnewtop
malvoliothegood (486)

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 (150)

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 (486)

@Bookie0
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 (150)

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 (150)

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

Thanks again
Have a great day!