pythonanaconda
snake languagesPython is weird, curly braces my beloved
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."
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++
}
}
}