Nov-23-2023, 08:32 AM
Hi so I recently am transitioning from Snap! to python and im trying to recreate something I did in snap but I am having some problems.
# CONTAINS LETTER BLOCK def contains_letter(string1,letter): for i in len(string1): if i==letter: print(True) else: print(False) contains_letter(hello,h)When I put hello and h in it just says undefined variable in the problems section. Also im pretty sure some of that code might not work as well as I was trying to find something that would work with what i want it to do.