Python Forum
Help with a random.randint choice in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with a random.randint choice in Python
#3
(Oct-23-2020, 03:39 PM)Yoriz Wrote: put another pair of brackets around the choices
print(random.choice((a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)))

omg thank you, I feel really dumb now.
Reply


Messages In This Thread
RE: Help with a random.randint choice in Python - by booponion - Oct-23-2020, 03:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  random numbers, randint janeik 2 577 Nov-27-2023, 05:17 PM
Last Post: janeik
  Unexpected output while using random.randint with def terickson2367 1 522 Oct-24-2023, 05:56 AM
Last Post: buran
  combobox_callback(choice choice part of openfile name (kind of dependency) janeik 9 1,464 Sep-10-2023, 10:27 PM
Last Post: janeik
Sad Iterate randint() multiple times when calling a function Jake123 2 2,065 Feb-15-2022, 10:56 PM
Last Post: deanhystad
  random.choice HELP samuelbachorik 4 2,283 Aug-18-2021, 03:24 PM
Last Post: naughtyCat
  Unable to use random.choice(list) in async method spacedog 4 3,453 Apr-29-2021, 04:08 PM
Last Post: spacedog
  Using Dictionary to Test Evenness of Distribution Generated by Randint Function new_coder_231013 6 3,308 Feb-23-2021, 01:29 PM
Last Post: new_coder_231013
  trying to input a variable using random.choice python63 9 3,653 Aug-13-2020, 05:37 PM
Last Post: python63
  Random Choice Operations Souls99 6 2,954 Jul-31-2020, 10:37 PM
Last Post: Souls99
  random.choice() takes two positional arguments, but three were given. ShakeyPakey 5 11,732 May-31-2020, 03:13 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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