KidsKod Code Brain Boosters

Riddle Me This #1 🔍

I speak without a mouth and code without a hand. What am I?

An AI assistant!

Code Quest #1: The Magic Number

Write code to find the number that is divisible by both 3 and 5 from a given list:

numbers = [1, 15, 22, 30, 47]

# Your code here
for num in numbers: if num % 3 == 0 and num % 5 == 0: print(num)

Code Quest #2: Secret Password

Kaity the Cat set a password check. Write a condition to print "Access Granted" only if the password is 'meow123':

password = 'meow123'

# Your code here
if password == 'meow123': print("Access Granted")

Riddle Me This #2 🎭

I loop forever unless told to stop. What am I?

An infinite loop!
No Comment
Add Comment
comment url