Share your repls and programming experiences

← Back to all posts
Bookie0 (5668)

This is a food rater. You are presented with some food (not always the same) and you have to rate it. That’s all. Pretty simple

Thanks for commenting and tips.
And remember, upvoting is caring! 😊 😃
Edit: thanks for the 13 upvotes!

KobeFF (1293)

Cool! you should make the rating on a scale of 1 to 10 instead of 1 to 5.

Bookie0 (5668)

Hey @KobeFF , thanks for commenting. I wanted a scale of 1 to 5 because it kind of relates to the 5 stars ⭐️ on hotel rating and food rating and stuff like that. But thanks for your suggesting !


KobeFF (1293)

@Bookie0 Oh, I see what you did there :)

Bookie0 (5668)

Thanks for understanding ! 😀😃😄@KobeFF

athut (7)

I like how you said "It is now 7:23 AM breakfast."

ARJPEG (149)

Nice! But consider making

  for x in line_something:
    print(x, end='')

in to a function (which would look like):

def slow_print(line):
  for letter in line:
    print(x, end='')

Other than that, good job!

Bookie0 (5668)

Hey, thanks for the feedback @adityaru
I dont really understand what you mean by replacing the for statement into a function. Does it make the text ‘type’ slower (slow_print), or is it just to make me not have to keep repeating it over and over again?

Thank you so much!!!!

NoelB33 (340)

It’s to make you not have to repeat it so much. @Bookie0

Bookie0 (5668)

hello, thank you so much for your answer!, im gonna use this advice on my future repls!!
thank so much again and have a great [email protected]

Description (4)

@adityaru does this do the same thing?
def display(text):
for c in text:
print (c, end="")

ARJPEG (149)

@Bookie0 It is called the DRY (don't repeat yourself) principle of programming.

DannyIsCoding (697)

I love it, but add more times(like lunch and dinner) to appear random. And a play again.
Still a great Code 👍

Bookie0 (5668)

Hi, thanks for commenting! Yeah there is times lunch and dinner, it’s a random between breakfast, lunch and dinner. But maybe I might just put all the different modes.
I’m still working on the play again, thank you very [email protected]

DannyIsCoding (697)

@Bookie0 oh. Ok! Thanks for letting me know. I played like 4 times and got only breakfast, lol

Bookie0 (5668)

Oh must be chance! Lol
Feel free to try again and maybe you’ll get lunch or dinner.
If you want, ill notify you when i improve this version!!
Have a great [email protected]

Bookie0 (5668)

hi, would you please like to visit this cool repl i just made?
thanks so [email protected]