diff --git a/diy4.py b/diy4.py new file mode 100644 index 0000000..3a90a0c --- /dev/null +++ b/diy4.py @@ -0,0 +1,7 @@ +import random +s = "abcde" +a = list(s) +p = random.randint(0,len(s)) +a.insert(p,"x") +res = "".join(a) +print(res) \ No newline at end of file