more cool stuff

chess, woah
This commit is contained in:
cutsweettea
2025-10-15 12:46:55 -04:00
parent 52ee1d7a8b
commit cb8e6e9b5a
12 changed files with 663 additions and 0 deletions

28
abc.py Normal file
View File

@@ -0,0 +1,28 @@
def split_and_join(line):
full = []
current = ''
line_len = len(line)
for c in range(line_len):
char = line[c]
if char == ' ':
full.append(current)
current = ''
else:
current = current + char
if c == line_len - 1:
full.append(str(current))
full_final = ''
full_len = len(full)
for v in range(full_len):
val = full[v]
full_final += val + ('' if v == full_len-1 else '-')
return full_final
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result)