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.
buran write Nov-23-2023, 08:48 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.