Mar-17-2019, 04:16 PM
(Mar-17-2019, 03:08 PM)ravioli2929 Wrote: unfortunately i cant use the for or in functions as it is homework.
Just asking how would I ask for more than one value say I
wanted 6 different random letters (there can be a duplicate)
So no
for
or in
(BTW - these are keywords, not functions); what about while? 
But basically it's six times same, you must fit it into constraints of assignment:
import random alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz" first = alphabet[random.randrange(len(alphabet))]
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.