0
pattern
how Fill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exclamation mark r"
quot;6 ответов
+ 7
import string
import random
strlist=list(string.printable)
new=[]
for c in range(0,2):
new.append(random.choice(strlist))
new.append("!")
print("".join(new))
+ 6
@NulledNVoid
it does, that's what string.printable is for!
+ 2
like go! Hi! ?
+ 2
@Ahri
Ok i thought so was not sure.
+ 2
And srry nvm ahri's code is what you are looking for
+ 1
Well that should do it. However you need some kind of list or input to choose from so that it appends.