Start a new Kumite
AllAgda (Beta)BF (Beta)CCFML (Beta)ClojureCOBOL (Beta)CoffeeScriptCommonLisp (Beta)CoqC++CrystalC#D (Beta)DartElixirElm (Beta)Erlang (Beta)Factor (Beta)Forth (Beta)Fortran (Beta)F#GoGroovyHaskellHaxe (Beta)Idris (Beta)JavaJavaScriptJulia (Beta)Kotlinλ Calculus (Beta)LeanLuaNASMNim (Beta)Objective-C (Beta)OCaml (Beta)Pascal (Beta)Perl (Beta)PHPPowerShell (Beta)Prolog (Beta)PureScript (Beta)PythonR (Beta)RacketRaku (Beta)Reason (Beta)RISC-V (Beta)RubyRustScalaShellSolidity (Beta)SQLSwiftTypeScriptVB (Beta)
Show only mine

Kumite (ko͞omiˌtā) is the practice of taking techniques learned from Kata and applying them through the act of freestyle sparring.

You can create a new kumite by providing some initial code and optionally some test cases. From there other warriors can spar with you, by enhancing, refactoring and translating your code. There is no limit to how many warriors you can spar with.

A great use for kumite is to begin an idea for a kata as one. You can collaborate with other code warriors until you have it right, then you can convert it to a kata.

# Hello World

A method that returns "Hello World".

Module Kumite
Function HelloWorld()
return "Hello World"
End Function
End Module

let obika = 1;

### Two-Array Zipper

Algorithms
Logic
Arrays
Data Types

Join two arrays of the same length by placing one value from the first array, then one from the second, and so on.

const arr1 = [1, 2, 3];
const arr2 = ['a', 'b', 'c'];

zip(arr1, arr2); // returns => [1, 'a', 2, 'b', 3, 'c']
function zip(arr1, arr2) {
const result = [];

for (let i = 0; i < arr1.length; i++) {
result.push(arr1[i], arr2[i]);
}

return result;
}

2531571
Failed Tests

### Palindroms

Check if a given word is a palindrome

const isPalindrom=(word)=>{};

console.log(isPalindrom("Kayak"));

console.log(isPalindrom("me"));
Failed Tests

### Vowels at sentence

How many vowels are in each word at one sentence?

Sentence: "Autronica is a leading innovator, manufacturer and supplier of fire and gas safety worldwide."

function countVowelAtWord(str) {}
Failed Tests

### PyCalc! (Python Calculator)

World, meet PyCalc! A Calculator that does the following: Addition, Subtraction, Multiplication, Division, Percentage, Finding Circumfrence, Finding Area, and Finding the Area of a Circle! Give it a go!

#Another python script that i thought wasnt going to exist yet here we are and here we be as I died.

#This is a simple calculator. It performs the following functions: adding, subtracting, multiplying, dividing,

import math as m

n = []

def main():
print("Are you adding (add), subtracting (sub), multiplying (mul), or dividing (div) today? Type 'oth' for more options.")
inp = input()
if inp.lower() == "add":
elif inp.lower() == "sub":
return sub()
elif inp.lower() == "mul":
return mul()
elif inp.lower() == "div":
return div()
elif inp.lower() == "oth":
print("Convert decimal to percent (per)\nFind cricumfrence (cir)\nFind area of a 2D shape(ar)\nFind area of a circle (car)")
inp = input()
if inp.lower() == "per":
return per()
elif inp.lower() == "cir":
return cir()
elif inp.lower() == "ar":
return ar()
elif inp.lower() == "car":
return car()

else:
return main()
else:
return main()

n.clear()
inp = input("Input a number: ")
n.append(inp)
inp = input("Input another number: ")
n.append(inp)
summ = float(n[0]) + float(n[1])
print(summ)
return main()

#Subtracting function
def sub():
n.clear()
inp = input("Input a number: ")
n.append(inp)
inp = input("Input another number: ")
n.append(inp)
dif = float(n[0]) - float(n[1])
print(dif)
return main()

#Multiplying function
def mul():
n.clear()
inp = input("Input a number: ")
n.append(inp)
inp = input("Input another number: ")
n.append(inp)
print("Math Homework Complete")
product = float(n[0]) * float(n[1])
print(product)
return main()

#Dividing function
def div():
n.clear()
inp = input("Input a number: ")
n.append(inp)
inp = input("Input another number: ")
n.append(inp)
print("Math Homework Complete")
product = float(n[0]) / float(n[1])
print(product)
return main()

#Percentage function
def per():
n.clear()
print("What number are you converting to a percent? (AS A DECIMAL)")
inp = input()
n.append(inp)
per = float(n[0]) * 100
sent = "{0}%".format(per)
print(sent)
return main()

#Circumfrence function
def cir():
n.clear()
inp = input("Do you have radius (r) or diameter (d)?\n")
if inp.lower() == 'r':
print("What is the radius?")
r = input()
val = 2 * m.pi * float(r)
print(val)
return main()
elif inp.lower() == 'd':
inp = input()
print("What is the diameter?")
r = input()
val = 2 * m.pi * float(r)
print(val)
return main()

#Area function
def ar():
n.clear()
print("What is the length?")
inp = input()
n.append(inp)
print("What is the height?")
inp = input()
n.append(inp)
prod = float(n[0]) * float(n[1])
print(prod)
return main()

# Circle Area function
def car():
print("Do you have the diameter (d) or the radius (r)?")
inp = input()
if inp.lower() == 'r':
print("What is the radius of the circle?")
r = input()
val = m.pi * float(r) ** 2
print(val)
return main()
elif inp.lower() == 'd':
print("What is the diameter of the circle?")
d = input()
r = float(d) / 2
val = m.pi * float(r) ** 2
print(val)
return main()

#Useless as of right now
def timerr():
return main()

#Runs the calculator on startup
if __name__ == "__main__":
main()

### CODEGOD101XXMASTER's Kumite #2

print("hello myxo")

### How to create a blockchain

Mhhh yes economik

namespace Solution
{
using System;

internal class BlockchainApplication
{
public static void Main(string[] args)
{
Block block1 = new Block("this is first!");
Block block2 = new Block(block1.Hash);
Block block3 = new Block(block2.Hash);
Block block4 = new Block(block3.Hash);
Block block5 = new Block(block4.Hash);

Console.WriteLine("Mhhh yes blokchayne indeed");
Console.WriteLine(block5.Hash);
}
}

public class Block
{
public string Hash {get; private set;}
public string PreviousHash {get; set;}

public Block(string previousHash)
{
this.PreviousHash = previousHash;
this.Hash = previousHash + "this is how it works right?";
}
}
}
Failed Tests

### Merging ArcGIS Shapefioles

Runs the Merge tool in ArcGIS Pro on the two Building (BL) files. Check for errors.

# Importing site package
print ("Importing arcpy site package.......")
import arcpy
#----------------------------------------------------------------------------
# Imports environment settings
print ("Imports environment settings.......")
from arcpy import env
#-------------------------------------------------------------------------------------------
# Setting the workspace
print ("Setting the workspace.......")
env.workspace = r"D:\Python\Data"
#----------------------------------------------------------------------------
# Overwriting existing files
print ("Setting Workspace to True")
env.overwriteOutput = True

#----------------------------------------------------------------------------
# Created by Ani Morrow
# Try-Except
try:
# Making variables for merge