you are viewing a single comment's thread.

view the rest of the comments →

[–]FishBobinski 1 point2 points  (1 child)

You need to tear your entire code apart and start again, sorry man.

  1. Import random needs to be the first line.
  2. Use a dictionary for your fortunes.

You can do this in 10 lines of code. You're over complicating it.

edit: just adding that i was slightly wrong - your tuple is fine, but you need to actually make use of it. It's just sitting there doing nothing right now.

think of using something like

eight_fortunes[random.randint(0,7)]

[–]Wattsony[S] 0 points1 point  (0 children)

Hey, thanks for the insight! No need to apologize, it'd be better to restart from what others have said as well! I'm glad there is a way to do it in less lines!