• Welcome to Encoded, Guest
    MOTD: Did something change?

encoded

Python:
def check_string(input_string):
    if input_string == "sssssSSsSSSSSSsssSsSsSSSss":
        return "I am offended"
    else:
        return "I'm fine."
 
Python:
def check_string(input_string):
    if input_string == "sssssSSsSSSSSSsssSsSsSSSss":
        return "I am offended"
    else:
        return "I'm fine."

JavaScript:
export default async function* reply(input: string){
    if (await input() == "I'm offended" ) {
        let count = 1;
        while (count<=101){
            yield `Hi offended, I'm Tris${new Array(count).fill('!').join('')}`
            count++
        }
    }
}
 
Back
Top Bottom