#336. Three choices
When the green flag is clicked, this script runs. What will the cat say?
when green flag clicked set [temp v] to (74) if <(temp) < (25)> then say [Cold] else if <(temp) < (38)> then say [Warm] else say [Hot] end end
# When the green flag is clicked
temp = 74
if temp < 25:
print("Cold")
else:
if temp < 38:
print("Warm")
else:
print("Hot")
let temp = 0;
// When the green flag is clicked
temp = 74;
if (temp < 25) {
console.log("Cold");
} else {
if (temp < 38) {
console.log("Warm");
} else {
console.log("Hot");
}
}
💡 Not sure? Build it in Scratch and try it out.