DA ULTIMATE FOOD RATER
Bookie0 (1472)

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!

You are viewing a single comment. View All
adityaru (142)

Nice! But consider making

  for x in line_something:
    print(x, end='')
    sys.stdout.flush()
    sleep(0.1)

in to a function (which would look like):

def slow_print(line):
  for letter in line:
    print(x, end='')
    sys.stdout.flush()
    sleep(0.1)

Other than that, good job!

Bookie0 (1472)

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!!!!

NoelBryan (245)

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

Bookie0 (1472)

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

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

adityaru (142)

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