import random
import os

filePath = "./scissors"

os.system("mkdir "+filePath+"-train")
os.system("mkdir "+filePath+"-test")


names =os.listdir(filePath)
# print(names)
for name in names:
    # print(name)
    # break
    rand = random.randint(0,9)
    # print("mv "+filePath+"/"+name+" "+filePath+"-train")
    if rand > 6:
        # print("mv "+filePath+"/"+name+" "+filePath+"-train")
        os.system("mv "+filePath+"/"+name+" "+filePath+"-test")
    else:
        os.system("mv "+filePath+"/"+name+" "+filePath+"-train")

23e9f50c23cebce42a2466d35b305c675ec77481
<mask token>

<mask token>
os.system('mkdir ' + filePath + '-train')
os.system('mkdir ' + filePath + '-test')
<mask token>
for name in names:
    rand = random.randint(0, 9)
    if rand > 6:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-test')
    else:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-train')

<mask token>
filePath = './scissors'
os.system('mkdir ' + filePath + '-train')
os.system('mkdir ' + filePath + '-test')
names = os.listdir(filePath)
for name in names:
    rand = random.randint(0, 9)
    if rand > 6:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-test')
    else:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-train')

import random
import os
filePath = './scissors'
os.system('mkdir ' + filePath + '-train')
os.system('mkdir ' + filePath + '-test')
names = os.listdir(filePath)
for name in names:
    rand = random.randint(0, 9)
    if rand > 6:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-test')
    else:
        os.system('mv ' + filePath + '/' + name + ' ' + filePath + '-train')

import random
import os

filePath = "./scissors"

os.system("mkdir "+filePath+"-train")
os.system("mkdir "+filePath+"-test")


names =os.listdir(filePath)
# print(names)
for name in names:
    # print(name)
    # break
    rand = random.randint(0,9)
    # print("mv "+filePath+"/"+name+" "+filePath+"-train")
    if rand > 6:
        # print("mv "+filePath+"/"+name+" "+filePath+"-train")
        os.system("mv "+filePath+"/"+name+" "+filePath+"-test")
    else:
        os.system("mv "+filePath+"/"+name+" "+filePath+"-train")
