Python Forum
help with assignment 2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with assignment 2
#4
list_nums should be defined as an empty list, random.choice should come after the loop and not before it, and you should append i to list_nums, not a (you don't need a at all).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
help with assignment 2 - by Mof44 - Nov-29-2018, 11:14 AM
RE: help with assignment 2 - by ichabod801 - Nov-29-2018, 02:06 PM
RE: help with assignment 2 - by Mof44 - Nov-29-2018, 04:15 PM
RE: help with assignment 2 - by ichabod801 - Nov-29-2018, 06:41 PM
RE: help with assignment 2 - by Mof44 - Nov-29-2018, 08:26 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020